20.04.2011, 15:09
hi i am tryign to put in a Good Car mode in FS i have this Code
But i get this Error
Can somone help me?
pawn Код:
if(strcmp(cmdtext, "/godcar", true) == 0)
{
new godct;
if(ingodcar[playerid] == 0) {
ingodcar[playerid] = 1;
SendClientMessage(playerid, COLOR_YELLOW, "God car activated");
godv = GetPlayerVehicleID(playerid);
godct = SetTimer("GodCarMode",500,1);
} else {
ingodcar[playerid] = 0;
SendClientMessage(playerid, COLOR_YELLOW, "God car de-activated");
KillTimer(godct);
}
return 1;
}
}
pawn Код:
L:\XtremePlanet\XtremePlanet\filterscripts\gc.pwn(98) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
L:\XtremePlanet\XtremePlanet\filterscripts\gc.pwn(108) : error 017: undefined symbol "ingodcar"
L:\XtremePlanet\XtremePlanet\filterscripts\gc.pwn(108) : warning 215: expression has no effect
L:\XtremePlanet\XtremePlanet\filterscripts\gc.pwn(108) : error 001: expected token: ";", but found "]"
L:\XtremePlanet\XtremePlanet\filterscripts\gc.pwn(108) : error 029: invalid expression, assumed zero
L:\XtremePlanet\XtremePlanet\filterscripts\gc.pwn(108) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.