SA-MP Forums Archive
Killtimer help - 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)
+--- Thread: Killtimer help (/showthread.php?tid=594617)



Killtimer help - N0FeaR - 20.11.2015

Any know whats the problem, thanks in advance!

Код:
E:\Documents and Settings\Nate\Desktop\Rebound-Roleplay\gamemodes\PR-RP.pwn(3135) : error 017: undefined symbol "playerid"
E:\Documents and Settings\Nate\Desktop\Rebound-Roleplay\gamemodes\PR-RP.pwn(3145) : error 028: invalid subscript (not an array or too many subscripts): "Pausetimer"
E:\Documents and Settings\Nate\Desktop\Rebound-Roleplay\gamemodes\PR-RP.pwn(3145) : warning 215: expression has no effect
E:\Documents and Settings\Nate\Desktop\Rebound-Roleplay\gamemodes\PR-RP.pwn(3145) : error 001: expected token: ";", but found "]"
E:\Documents and Settings\Nate\Desktop\Rebound-Roleplay\gamemodes\PR-RP.pwn(3145) : error 029: invalid expression, assumed zero
E:\Documents and Settings\Nate\Desktop\Rebound-Roleplay\gamemodes\PR-RP.pwn(3145) : fatal error 107: too many error messages on one line
PHP код:
}
public 
OnPlayerResume(playeridtime)
{
    
KillTimer(Pausetimer[playerid]); line 3145
    SendClientMessage
(playeridCOLOR_WHITE"Welcome back!");
    return 
1;




Re: Killtimer help - Misiur - 21.11.2015

We need +20 lines up to check this, Pausetimer definition, and you need to make sure your braces are alright.


Re: Killtimer help - jlalt - 21.11.2015

you sure you have [MAX_PLAYERS]; after Pausetimer new? Like:
new Pausetimer[MAX_PLAYERS];