Crash!!??
#1

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
Reply
#2

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);
Reply
#3

lol thx u helped me alot
Reply
#4

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.
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)