Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,784
» Latest member: [c]Sanchez
» Forum threads: 2,359
» Forum posts: 12,226

Full Statistics

Online Users
There are currently 1186 online users.
» 0 Member(s) | 1183 Guest(s)
Google, Bing, Baidu

Latest Threads
Discord problem.
Forum: Support
Last Post: drwnrbbt
55 minutes ago
» Replies: 0
» Views: 1
After School Roleplay - G...
Forum: Advertisements
Last Post: cosminupgaming
1 hour ago
» Replies: 5
» Views: 441
🎮 Free SA-MP Server Hosti...
Forum: Chat
Last Post: Centnodes
7 hours ago
» Replies: 7
» Views: 232
LiveDialogs.inc
Forum: Libraries
Last Post: vawylon
2025-12-19, 05:53 AM
» Replies: 0
» Views: 46
Awakeninga an old server.
Forum: Support
Last Post: Polecalex
2025-12-17, 11:33 PM
» Replies: 1
» Views: 193
Recompiling for x86_64 or...
Forum: General Discussions
Last Post: Polecalex
2025-12-17, 12:57 AM
» Replies: 0
» Views: 64
Real-time pathfinder, opt...
Forum: Pawn Scripting
Last Post: hiago.sucesso.hs
2025-12-16, 03:40 PM
» Replies: 1
» Views: 194
Is there a WebSocket plug...
Forum: General Discussions
Last Post: hiago.sucesso.hs
2025-12-16, 03:37 PM
» Replies: 0
» Views: 33
What would you start?
Forum: Life
Last Post: HELLHOUND
2025-12-14, 10:32 PM
» Replies: 5
» Views: 10,351
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: cosminupgaming
2025-12-13, 07:16 PM
» Replies: 4
» Views: 800

 
  Error 4: Index Out Of Bound
Posted by: Jonies - 2020-10-25, 12:56 PM - Forum: Pawn Scripting - Replies (9)

Whats wrong with my code?


PHP Code:
#define MAX_GIFT 100

LoadGiftEvent()
{
? ? new 
rows;
? ? 
cache_get_row_count(rows);? 
? ? if(!
rows) return 0;

? ? for(new 
0MAX_GIFTi)
? ? {
? ? ? ? 
cache_get_value_name_int(i"id"g_gift[i][G_SQL_ID]);
? ? ? ? 
cache_get_value_name_float(i"x"g_gift[i][G_POS_X]);
? ? ? ? 
cache_get_value_name_float(i"y"g_gift[i][G_POS_Y]);
? ? ? ? 
cache_get_value_name_float(i"z"g_gift[i][G_POS_Z]);
? ? ? ? 
TotalGift;
? ? }
? ? 
RandomizeGift();
? ? 
printf("[MySQL R41-3]: Gift diunggah: %i pcs."TotalGift);
? ? return 
1;
}

Randomize()
{
    
//No Error There


Error :?
PHP Code:
[debugRun time error 4"Array index out of bounds"
[21:50:52] [debug]  Attempted to read/write array element at index 1034098284 in array of size 100
[21:50:52] [debugAMX backtrace:
[
21:50:52] [debug#0 00535c3c in ?? () from new.amx
[21:50:52] [debug#1 00511eb4 in public LoadGiftEvent () from new.amx 

Database
PHP Code:
+---+---------+---------+-------
id x? ? ? ? | y? ? ? ? | z? ? ? |
+---+---------+---------+-------
|? 
|? 961.241 | -1445.19 13.452 |
|? 
|? 1480.38 | -1638.49 14.148 |
|? 
|? 2157.07 | -1591.43 14.367 |
|? 
|? 1911.26 | -1776.76 13.383 |
|? 
|? 1110.03 | -1794.52 16.594 |
|? 
|? 835.95 | -2001.94 12.887 |
|? 
|? 348.408 | -1799.52 |? 4.815 |
|? 
|? 311.593 | -1797.88 |? 4.558 |
|? 
|? 389.555 | -1521.73 32.278 |
10 |? 484.068 | -1514.09 20.305 |
11 |? 1007.2 | -1349.95 13.384 |
12 |? 660.498 | -457.695 16.336 |
13 |? 701.584 | -457.038 16.336 |
14 |? 33.179 | -230.749 |? 5.499 |
15 |? 207.187 | -173.123 |? 1.594 |
16 |? 155.693 | -167.684 |? 1.578 |
17 |? -62.499 |? 45.752 |? 3.11 |
18 |? -39.79 |? 52.641 |? 6.484 |
19 |? 1347.72 |? 346.591 20.068 |
20 |? 1319.34 |? 402.335 21.041 |
21 |? 1626.3 |? 613.707 |? 7.781 |
22 |? 1637.01 |? 723.854 |? 10.82 |
23 |? 1668.25 |? 1012.54 10.846 |
24 |? 2119.13 |? 1332.83 |? 10.82 |
25 |? 2003.2 |? 1544.19 13.586 |
26 |? 1973.1 |? 1623.26 12.862 |
27 |? 1878.8 |? 1794.85 18.934 |
28 |? 2215.83 | -1167.89 25.743 |
29 |? 2290.2 | -1527.98 26.875 |
30 |? 2459.42 |? -1711.8 13.569 |
31 |? 2262.56 | -1788.16 13.547 |
32 |? 2162.9 | -1775.89 19.838 |
33 |? 1993.77 | -1779.85 17.362 |
34 |? 1862.91 | -1872.31 |? 13.51 |
35 |? 1199.06 | -1731.43 13.605 |
36 |? 665.22 | -1865.49 |? 5.492 |
37 |? 154.094 |? -1963.4 |? 3.815 |
38 | -376.609 | -1424.06 25.754 |
39 | -1678.19 | -581.488 |? 14.18 |
40 | -1609.76 | -492.925 |? 22.11 |
41 | -1250.41 |? -99.605 14.186 |
42 | -1991.22 |? 148.402 27.611 |
43 |? -1927.3 |? 264.146 41.065 |
44 | -2255.51 |? 539.933 35.191 |
45 | -2490.46 |? 1078.68 56.197 |
46 | -2666.56 |? 1809.75 68.217 |
47 |? 206.315 |? 2506.19 16.515 |
48 |? 1692.45 |? 1445.19 10.783 |
49 |? 1610.13 |? 1599.86 |? 10.86 |
50 |? 1766.05 | -1919.73 |? 13.6 |
+---+---------+---------+------- 


  Beware
Posted by: Limitless - 2020-10-25, 05:23 AM - Forum: Chat - Replies (4)

Ahh Jeez, Someone offered me a free host, his windows server. So I transferred my files, server went good, and SUDDENLY- this guy locked the host and stole my script, discord template, deleted accounts and s***.



So EVERYONE, don't trust a guy called Bonamiice#7125 on discord, dont trust him, he stole everything from us, and also his discord server used the FiveM Limitless Roleplay Image, which has copyright claims... Stay Safe!


  Problem with a fuel system when car respawn ...
Posted by: DaZzY - 2020-10-24, 11:19 PM - Forum: Pawn Scripting - Replies (1)

Hello ,?

I make a fuel system on my GM?

but i get a little problem when a vehicle unoccuppied respawn the fuel do not reset?

example when player leave a car with ?40 % of fuel and car respawn so car not respawn with 100 % of fuel ...

I don't know how to solve that

what a callback i must to use ?


  Error with TextDrawSetString ??
Posted by: DaZzY - 2020-10-24, 04:12 PM - Forum: Pawn Scripting - Replies (2)

Hello i want to create a TD of FUEL And i get error when i use?TextDrawSetString?



Quote:C:\Users\user\Desktop\Samp\samp server\gamemodes\SFUD.pwn(5445) : error 029: invalid expression, assumed zero

C:\Users\user\Desktop\Samp\samp server\gamemodes\SFUD.pwn(5445) : warning 215: expression has no effect

C:\Users\user\Desktop\Samp\samp server\gamemodes\SFUD.pwn(5445) : error 001: expected token: ";", but found "]"

C:\Users\user\Desktop\Samp\samp server\gamemodes\SFUD.pwn(5445) : error 029: invalid expression, assumed zero

C:\Users\user\Desktop\Samp\samp server\gamemodes\SFUD.pwn(5445) : fatal error 107: too many error messages on one line





This is on Gamemodeini :



Quote:g_Player[playerid][td_fuel] = CreatePlayerTextDraw(playerid,45.000000,324.000000,"Fuel: 100");

? ? PlayerTextDrawBackgroundColor(playerid,g_Player[playerid][td_fuel],0x00000033);

? ? PlayerTextDrawFont(playerid,g_Player[playerid][td_fuel],3); /

? ? PlayerTextDrawLetterSize(playerid,g_Player[playerid][td_fuel],0.699999,1.700000);

? ? PlayerTextDrawColor(playerid,g_Player[playerid][td_fuel],0x000000ff);

? ? TextDrawSetShadow(playerid,g_Player[playerid][td_fuel],3);







Quote:public timer_fuel_lower()

{

? ? for(new i=0;i<MAX_PLAYERS;i) { //

? ? ? ? if (isrefuelling[i]) continue; //

? ? ? ? new vid = GetPlayerVehicleID(i); //

? ? ? ? if (GetPlayerVehicleSeat(i) == 0) { //

? ? ? ? ? ? fuel[vid] = fuel[vid] -1; //

? ? ? ? ? ? if (fuel[vid]<1) //

? ? ? ? ? ? {

? ? ? ? ? ? ? ? fuel[vid] = 0; //

? ? ? ? ? ? ? ? RemovePlayerFromVehicle(i); //

? ? ? ? ? ? ? ? GameTextForPlayer(i,"~r~You are out of ~w~fuel~r~!",5000,4); //

? ? ? ? ? ? }

? ? ? ? }

? ? ? ?

? ? ? ? new tdstring[32];

? ? ? ?format(tdstring,sizeof tdstring,"Fuel:%i",fuel[vid]);

? ? ? ? TextDrawSetString([td_fuel][i], tdstring); < Line 5445



? ? }



}





Whats wrong please ??


  OCTOBER 2020 Q&A Live stream recording and podcast
Posted by: Potassium - 2020-10-24, 02:33 AM - Forum: Development Updates - Replies (4)

Our first ever live stream was a success, with a peak of 150 viewers, and a whole bunch of your questions answered!

Text transcript will be on the forum within the next few days.

Feel free to offer your feedback on how we can improve our streams :)

The podcast can be found here:?https://www.buzzsprout.com/1439923/6037927

And the video:

[Video: https://youtu.be/bTYWWsXkcDo]


  Ability to manage the display of the HUD
Posted by: BrunoNapoli97 - 2020-10-23, 06:32 PM - Forum: Questions and Suggestions - Replies (3)

Hi, sorry for my bad English but I write with google translator, I wanted to ask you if there will be the possibility to deactivate or activate the game HUD or maybe just the radar, it would be a great thing to do. thanks for a future reply.


  Help with Custom Weapon Names
Posted by: RoBy41 - 2020-10-23, 02:08 PM - Forum: Pawn Scripting - Replies (5)

Lately I noticed that Roleplay servers scripts allow weapons with the same ID (for example, a Deagle) to be stored in a player's inventory under different names. For example, if a player (from Grove Street Families)?has a Deagle on him, if he does /inventory (hypothetically), instead of Deagle, the weapon's name is ''Glock''. Also, let's say there is another player (from Ballas) that has a Deagle on him. But in this case, the weapon's name?(Deagle) can be another weapon name other than Glock (that the first player has), for example, when the second player does /inventory, the name of the Deagle is ''Beretta''.



How can you do that?


  [SA:MP] GTA V HUD & FARMER JOB
Posted by: Flint - 2020-10-22, 11:39 PM - Forum: Videos and Screenshots - Replies (6)

like & subscribe thx <3

link:?https://youtu.be/oLssxsAO_0s


  Scriptfiles created with fopen(File: file, io_append), gets deleted
Posted by: Mergevos - 2020-10-22, 09:40 PM - Forum: Pawn Scripting - No Replies

As the title says, files created with io_append gets deleted everytime server (re)starts?up again.?



Code is this function:?https://github.com/Mergevos/samp-logging/blob/master/logging.inc#L182



File gets created, and all of the content is written into, but when server starts again, it gets deleted.


  Your opinion about moon.
Posted by: Hype - 2020-10-22, 06:38 PM - Forum: Chat - Replies (4)

Moon is very coool

[Image: x3sxgqj.jpg]