Search Results
SetTimerEx("message", 60000, false, "i", playerid);
It won't work in OnGameModeInit
183
It is called using SetTimerEx.
367
I can't use GetPlayerName because it's in a function thay doesn't use playerid.
367
Use a PVar.
Check if it is 0 when the player does the command.
When they do the command, set the PVar to 1 and set a timer to change playerid's pvar to 0
233
Why did you bump it after only waiting 30 minutes?
233
In the function header. "name" works correctly though, because when I send the client message containing "name", it is correct.
367
I have this in my script:
pawn Код:
new string2[128], namelength = strlen(name);return format(string2, sizeof(string2), "%s - %d", name, namelength), SendClientMessage(playerid, -1, string2);
Yet...
367
The pvar was saving, but the query was not completing until after the check and so it would equal 0 when checked and would only be set afterwards :P
175
Alright, i'll add a lot of debugging lines I used a normal variable and got the same problem, though.
175
Alright, i'll add a lot of debugging lines I used a normal variable and got the same problem, though.
175
I'm trying to save a PVar but it just won't work. Here is my SQL method:
pawn Код:
forward CheckCharExists_handle(playerid);public CheckCharExists_handle(playerid) { new rows, fields; ca...
175
Wrong. That will get the time between the start and end of the function.
pawn Код:
new time = gettime();function();new time2 = gettime();printf("%s took %d ms.", "function()", time2-time);
303
In your save query, use capital H
Dont use capital
177
When I submit an SQL query (not all queries, only one) the server crashes and I get this error:
Quote:
[22:57:31] [debug] Server crashed while executing DCRP.amx
[22:57:31] [debug] AMX bac...
127
Quote:
Originally Posted by TheArcher
@kaisersouse string can be easly a local variable....
This is probably the best way, considering that most people use "string" for a general string...
57,497
Because if I have checkpoints streaming for houses, and then I set a checkpoint for the mission, the mission checkpoint will be replaced by the house checkpoint when a player gets close enough.
230