20.01.2011, 01:40
pawn Код:
if (strcmp("/fv", cmdtext, true, 10) == 0)
{
new VehicleID = GetPlayerVehicleID(playerid);
RepairVehicle(VehicleID);
SetVehicleHealth(VehicleID, 1000);
IsPlayerInVehicle(playerid, vehicleid);
SendClientMessage(playerid,COLOR_NAVY,"VEHICLE: Your vehicle has been fully repaired.");
else SendClientMessage(playerid,COLOR_NAVY,"VEHICLE: You must be in a vehicle to repair.");
return 1;
}
Код:
C:\Users\Kyle\Desktop\SAMP RP USE THIS!\gamemodes\testserver.pwn(274) : error 017: undefined symbol "vehicleid" C:\Users\Kyle\Desktop\SAMP RP USE THIS!\gamemodes\testserver.pwn(276) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Yes i'm noobish, this is my second day scripting.