Error with pawno - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error with pawno (
/showthread.php?tid=274214)
Error with pawno -
iRockJerkySalad - 05.08.2011
I get this error with Pawno, can anyone help me sort this out?
I can't seem to find the problem.
Re: Error with pawno -
Krx17 - 05.08.2011
Show us line 3834.
Re: Error with pawno -
iRockJerkySalad - 05.08.2011
3438-3855
forward RandMessagesx();
public RandomMessage()
{
TextDrawSetString(ShadowsRandom, RandomMessages[random(sizeof(RandomMessages))]);
return 1;
}
forward AutoRepair(playerid,vehicleid);
public AutoRepair(playerid,vehicleid)
if (IsPlayerInAnyVehicle(playerid))
{
new Float:health;
GetVehicleHealth(vehicleid, health);
if (health < 950)
{
RepairVehicle(vehicleid);
SetVehicleHealth(vehicleid, 1000);
}
}
Re: Error with pawno -
Riddick94 - 05.08.2011
pawn Код:
forward RandMessagesx();
public RandomMessage()
{
TextDrawSetString(ShadowsRandom, RandomMessages[random(sizeof(RandomMessages))]);
return true;
}
forward AutoRepair(playerid,vehicleid);
public AutoRepair(playerid,vehicleid)
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:health;
GetVehicleHealth(vehicleid, health);
if(health < 950)
{
RepairVehicle(vehicleid);
SetVehicleHealth(vehicleid, 1000);
}
}
return true;
}