Car health
#1

Hey guys, i got a little warning, and cant find out what im doing wrong.

pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    new chealth = GetVehicleHealth(vehicleid, chealth); //<-- line 845
    if(chealth < 350)
    {
    SetVehicleParamsEx(vehicleid, false, true, true, true, false, false, false);
    TogglePlayerControllable(playerid,0);
    SendClientMessage(playerid, orange, "Your engine died. Please call a repairsman to repair it");
    return 1;
    } else if (chealth >350) {
    SetVehicleParamsEx(vehicleid, true, false, false, false, false, false, false);
    TogglePlayerControllable(playerid, 1);
    }
    return 1;
    }
Код:
C:\Users\wesley.PC_van_Kelsey\Desktop\RolePlay\gamemodes\RolePlay.pwn(845) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Hope you guys can help
~Wesley
Reply


Messages In This Thread
Car health - by Wesley221 - 12.05.2011, 09:28
Re: Car health - by Haydz - 12.05.2011, 09:36
Re: Car health - by Wesley221 - 12.05.2011, 14:36
Re: Car health - by Vince - 12.05.2011, 15:03
Re: Car health - by Wesley221 - 12.05.2011, 16:52

Forum Jump:


Users browsing this thread: 2 Guest(s)