how to make repair with 2?
#7

Quote:
Originally Posted by FireCat
Посмотреть сообщение
I'd just do
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
        if (newkeys & KEY_SUBMISSION) RepairVehicle(GetPlayerVehicleID(playerid));
    }
    return 1;
}
I just tried it and it's bugged with some of the code
pawn Код:
C:\Documents and Settings\orion\Фб ЭггсбцЬ мпх\AK Server Gamemode\filterscripts\Sp.pwn(280) : error 017: undefined symbol "IsNosVehicle"
C:\Documents and Settings\orion\Фб ЭггсбцЬ мпх\AK Server Gamemode\filterscripts\Sp.pwn(317) : warning 225: unreachable code
C:\Documents and Settings\orion\Фб ЭггсбцЬ мпх\AK Server Gamemode\filterscripts\Sp.pwn(317) : error 017: undefined symbol "IsNosVehicle"
C:\Documents and Settings\orion\Фб ЭггсбцЬ мпх\AK Server Gamemode\filterscripts\Sp.pwn(330) : error 017: undefined symbol "vehicleid"
C:\Documents and Settings\orion\Фб ЭггсбцЬ мпх\AK Server Gamemode\filterscripts\Sp.pwn(338) : error 030: compound statement not closed at the end of file (started at line 265)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
As I have the code I posted, it works fine and
pawn Код:
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
As for decondelite's way it compiles fine, but I didn't test it ingame
Reply


Messages In This Thread
how to make repair with 2? - by niels44 - 09.11.2011, 15:02
Re: how to make repair with 2? - by Kostas' - 09.11.2011, 15:06
Re: how to make repair with 2? - by niels44 - 09.11.2011, 15:27
Re: how to make repair with 2? - by Kostas' - 09.11.2011, 15:29
Re : how to make repair with 2? - by decondelite - 09.11.2011, 15:34
Re: Re : how to make repair with 2? - by FireCat - 09.11.2011, 15:38
Re: Re : how to make repair with 2? - by Kostas' - 09.11.2011, 15:47

Forum Jump:


Users browsing this thread: 3 Guest(s)