08.06.2010, 15:22
There's one error that is bugging it and i can't finish it
Here's the code:
And it gives me this Error when i compile it
Error:
And i can't fix it i need some help
Here's the code:
Код:
public OnPlayerExitVehicle(playerid, as[0]); { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER, as[0]) { if(Attackmod[playerid] == 1) { RemoveVehicleComponent(GetPlayerVehicleID(playerid),1010); // Removes Nitro RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1087); // Removes Hydraulics RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1001); // Removes Spoiler RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1074); // Removes Mega Wheels RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1007); // Removes RSS RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1017); // Removes LSS SendClientMessage(playerid,COLOR_LIGHTRED,"Transformation Offline"); Attackmod[playerid] = 0; } return 1; } if(Tcspawned[playerid] = as) { tc[0] = GetPlayerVehicleID(playerid); Tcspawned[playerid] = 0; SendClientMessage(playerid,red,"Tc Removed"); DestroyVehicle(tc[0]); } return 1; } }
Error:
Код:
C:\Users\zzz\Desktop\z\filterscripts\w.pwn(166) : error 029: invalid expression, assumed zero C:\Users\zzz\Desktop\z\filterscripts\w.pwn(183) : warning 211: possibly unintended assignment C:\Users\zzz\Desktop\z\filterscripts\w.pwn(369) : warning 203: symbol is never used: "strtok" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.