18.10.2012, 15:56
hey everyone,
i made this switch for my GM but somehow it gives me errors and i dont know why...
i get these errors:
any idea of how it is possible those errors? and the lines of the errors are:
thats my code and errors, but does anybody sees wut im doing wrong?
greets niels
i made this switch for my GM but somehow it gives me errors and i dont know why...
pawn Код:
WaitForBot( playerid, menu, action[] )
{
PlayerInfo[playerid][botready] = false;
switch(playerid)
{
case FirstRaceBot:
{
SendClientMessage(FirstRaceBot, COLOR_GREEN, action );
}
case FirstFightBot:
{
SendClientMessage(FirstFightBot, COLOR_GREEN, action );
}
case SecondFightBot:
{
SendClientMessage(SecondFightBot, COLOR_GREEN, action );
}
}
PlayerInfo[playerid][waitingforbot] = SetTimerEx("WaitForBotTimer",250,true,"dd",playerid,menu );
return 1;
}
pawn Код:
D:\Program Files\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(721) : error 008: must be a constant expression; assumed zero
D:\Program Files\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(725) : error 008: must be a constant expression; assumed zero
D:\Program Files\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(729) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
pawn Код:
case FirstRaceBot:
case FirstFightBot:
case SecondFightBot:
greets niels