Error with pawno
#1

I get this error with Pawno, can anyone help me sort this out?
I can't seem to find the problem.

Reply
#2

Show us line 3834.
Reply
#3

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);


}

}
Reply
#4

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)