18.12.2010, 11:39
The problem is with the timers, I want someone to enter this certain checkpoint, and then a 10 second timer would start, after 10 seconds an explosion would occur there and the timer would be killed.
I use this,
And the timer keeps on repeating itself. I used KillTimer(message); under public message() but it would give this:
In need of help ASAP.
I use this,
Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(gTeam[playerid] == Team1)
{
SetTimer("message",10000,true);
GameTextForPlayer(playerid,"Stay in the checkpoint for ~g~10 seconds!",3000,3);
new pName[24];
new str[128];
GetPlayerName(playerid, pName, 24);
format(str, 128, "%s is placing the bomb!", pName);
SendClientMessageToAll(COLOR_INTRO, str);
}
else if(gTeam[playerid] == Team2)
{
GameTextForPlayer(playerid,"~g~Defend this checkpoint",3000,3);
}
return 1;
}
public message()
{
DisablePlayerCheckpoint();
GameTextForAll("The bomb will explode in 10 seconds",5000,5);
}
Код:
C:\Users\hp\Desktop\Stuff\Server\gamemodes\Untitled.pwn(42) : warning 202: number of arguments does not match definition C:\Users\hp\Desktop\Stuff\Server\gamemodes\Untitled.pwn(43) : warning 202: number of arguments does not match definition C:\Users\hp\Desktop\Stuff\Server\gamemodes\Untitled.pwn(44) : warning 202: number of arguments does not match definition C:\Users\hp\Desktop\Stuff\Server\gamemodes\Untitled.pwn(65) : warning 202: number of arguments does not match definition C:\Users\hp\Desktop\Stuff\Server\gamemodes\Untitled.pwn(66) : warning 202: number of arguments does not match definition C:\Users\hp\Desktop\Stuff\Server\gamemodes\Untitled.pwn(67) : warning 202: number of arguments does not match definition C:\Users\hp\Desktop\Stuff\Server\gamemodes\Untitled.pwn(108) : warning 202: number of arguments does not match definition C:\Users\hp\Desktop\Stuff\Server\gamemodes\Untitled.pwn(116) : warning 202: number of arguments does not match definition C:\Users\hp\Desktop\Stuff\Server\gamemodes\Untitled.pwn(151) : warning 204: symbol is assigned a value that is never used: "string" C:\Users\hp\Desktop\Stuff\Server\gamemodes\Untitled.pwn(177) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg") C:\Users\hp\Desktop\Stuff\Server\gamemodes\Untitled.pwn(192) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange") C:\Users\hp\Desktop\Stuff\Server\gamemodes\Untitled.pwn(234) : warning 202: number of arguments does not match definition C:\Users\hp\Desktop\Stuff\Server\gamemodes\Untitled.pwn(236) : error 076: syntax error in the expression, or invalid function call Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.

