Crash!!?? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Crash!!?? (
/showthread.php?tid=92696)
Crash!!?? -
MB@ - 21.08.2009
When i type
Код:
public OnPlayerConnect(playerid)
{
SetTimer("", 60000,2);
SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
}
/\
||
In my gamemode i just crash...When i deleted it || then i didnt crash... Is this a bug or what
Re: Crash!!?? -
kaisersouse - 21.08.2009
Umm...
There should be the name of a function between " " i.e. "functions name".
Also, 2 is an invalid choice for the last parameter. Must be 0 (dont repeat timer) or 1 (repeat timer)
SetTimer("FunctionName",60000,1);
Re: Crash!!?? -
MB@ - 21.08.2009
lol thx u helped me alot
Re: Crash!!?? -
MenaceX^ - 21.08.2009
Quote:
Originally Posted by kaisersouse
Umm...
There should be the name of a function between " " i.e. "functions name".
Also, 2 is an invalid choice for the last parameter. Must be 0 (dont repeat timer) or 1 (repeat timer)
SetTimer("FunctionName",60000,1);
|
I'm not sure if he even does something with that timer, if you don't use it (as its name is ""), you could simply remove it if you don't use it.
Re: Crash!!?? -
kaisersouse - 21.08.2009
Quote:
Originally Posted by MenaceX^
Quote:
Originally Posted by kaisersouse
Umm...
There should be the name of a function between " " i.e. "functions name".
Also, 2 is an invalid choice for the last parameter. Must be 0 (dont repeat timer) or 1 (repeat timer)
SetTimer("FunctionName",60000,1);
|
I'm not sure if he even does something with that timer, if you don't use it (as its name is ""), you could simply remove it if you don't use it.
|
maybe so, but thats his decision. I jsut wanted him to know how to actually use the function correctly first.