29.03.2010, 18:04
I have this code right here
i get these errors
Help?
I can fix the indentation, so don't worry
Код:
//this is on game mode init//
SetTimer("vcheck",500,1);
//this is what i have forwarded//
forward vcheck();
//and this is the script//
public vcheck()
{
if(GetVehicleHealth(vehicleid) < 300)
{
new vehicleid = GetPlayerVehicleID(playerid);
new Float:VehHealth;
GetVehicleHealth(vehicleid,VehHealth);
if(VehHealth <= 50) return RepairVehicle(GetPlayerVehicleID(playerid));
PlayerPlaySound(playerid, 1056, 0.0,0.0, 0.0);
SendClientMessage(playerid, COLOR_KRED, "Your vehicle has been fixed");
return 1;
}
return 1;
}
Код:
D:\samp03asvr_R4_win32\gamemodes\Untitled.pwn(493) : error 017: undefined symbol "vehicleid" D:\samp03asvr_R4_win32\gamemodes\Untitled.pwn(495) : error 017: undefined symbol "playerid" D:\samp03asvr_R4_win32\gamemodes\Untitled.pwn(498) : error 017: undefined symbol "playerid" D:\samp03asvr_R4_win32\gamemodes\Untitled.pwn(499) : error 017: undefined symbol "playerid" D:\samp03asvr_R4_win32\gamemodes\Untitled.pwn(500) : error 017: undefined symbol "playerid" D:\samp03asvr_R4_win32\gamemodes\Untitled.pwn(503) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
I can fix the indentation, so don't worry

