07.01.2011, 17:30
Hi, I need some help with these errors! I am pasting the code below, from line 82 - 97.
And here are the errors!
Thanks for helping!
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/hyd", cmdtext, true, 10) == 0)
{
if(gVIP[playerid] == 1)
if(IsPlayerInAnyVehicle(playerid))
SendClientMessage(playerid, COLOR_GREEN, "Hydraulics added to your vehicle!");
AddVehicleComponent(vehicleid, 1087);
else
SendClientMessage(playerid, COLOR_RED, "You're not in a car!");
else
SendClientMessage(playerid, COLOR_RED, "You're not a VIP!");
return 1;
}
return 0;
}
Код:
C:\Users\Jack\Desktop\samp\filterscripts\adminscript.pwn(89) : error 017: undefined symbol "vehicleid" C:\Users\Jack\Desktop\samp\filterscripts\adminscript.pwn(90) : error 029: invalid expression, assumed zero C:\Users\Jack\Desktop\samp\filterscripts\adminscript.pwn(92) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.