Search Results
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
SetTimerEx("RespawnVehicle", 3000, false, "d", vehicleid);
return 1;
}
forward RespawnVehicle(vehicleid);
public RespawnVehicle(vehi...
109
Maybe this will help?
https://sampforum.blast.hk/showthread.php?tid=271129
132
Have you set up your server with a MySQL plugin yet?
154
Log some debug messages under the 'vehiclebuy' command.
For example:
Код:
printf("Debug: %d", showingdealer[playerid]);
It'll be easier to find the source of the problem.
335
Alright, figured it out.
Correct way:
Код:
forward Float:GetHealth(playerid);
public Float:GetHealth(playerid)
{
new Float:x;
GetPlayerHealth(playerid, x);
return x;
}
The reason for this, corr...
89
Код:
(292) : warning 213: tag mismatch
Line 292 is where I return 'x'.
89
So I decided to make getting the player's health a little quicker with this stock:
Код:
stock GetHealth(playerid)
{
new Float:x;
GetPlayerHealth(playerid, x);
return x;
}
But when I compile it...
89
Thanks for the response! So if I wanted to add a string to a free slot, I would do something like:
Код:
myArray[playerid][GetFreeSlot(playerid)] = "My string here";
131
If I have an array, such as:
Код:
new myArray[MAX_PLAYERS][10][50];
, which is supposed to hold 10 strings. How do I loop through it to check for an open slot? I know how to loop through an arra...
131