Admin cars error
#1

i have one error in
pawn Код:
OnPlayerStateChange
error
Код:
C:\Users\Vijay_Rasigan\Desktop\CR-RP(LS)\CR-RP(LS)\GameModes\RWRP.pwn(10703) : error 017: undefined symbol "newcar"
C:\Users\Vijay_Rasigan\Desktop\CR-RP(LS)\CR-RP(LS)\GameModes\RWRP.pwn(12845) : warning 202: number of arguments does not match definition
C:\Users\Vijay_Rasigan\Desktop\CR-RP(LS)\CR-RP(LS)\GameModes\RWRP.pwn(12846) : warning 202: number of arguments does not match definition
C:\Users\Vijay_Rasigan\Desktop\CR-RP(LS)\CR-RP(LS)\GameModes\RWRP.pwn(12847) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
line
pawn Код:
else if(IsAnAdminCar(newcar)
        {
            if(PlayerInfo[playerid][pAdmin] >= 0) { }
            else
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "** You must be on Admin to use this Car");
                GameTextForPlayer(playerid, "~y~Admin Vehicle ~n~ You Are Not Admin",4000,3);
            }
        }
Reply
#2

At the top of OnPlayerStateChange:
pawn Код:
new newcar = GetPlayerVehicleID(playerid);
Reply
#3

Edit: Too late again.
Reply
#4

im put pawno get crash
Reply
#5

pawn Код:
else if(IsAnAdminCar(newcar)
{
    if(PlayerInfo[playerid][pAdmin] == 0)
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "** You must be on Admin to use this Car");
        GameTextForPlayer(playerid, "~y~Admin Vehicle ~n~ You Are Not Admin",4000,3);
    }
}
There's a chance it won't work.

If your PAWNO crashes it means you have a brace too much, mostly.
Reply
#6

FIXED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)