ADMIN ONLY VEHCILES [HELP ME OUT MEN]
#1

AYEEEE I NEED TO FIX THIS

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
    {
        new newcar = GetPlayerVehicleID(playerid);
        if(newcar == 520)
        {
           if(AccInfo[playerid][Level] >= 3))
            {
                RemovePlayerFromVehicle(playerid);
            }
        }
    }
    return 1;
}


ITS GIVING ME THIS LITTLE SINGLE ERROR. I CANT FIND IT IN THE SCRIPT HELP!

pawn Код:
C:\Documents and Settings\EPUser\My Documents\Los Santos Gang Wars Server Folder\Cadmin.pwn(7834) : error 029: invalid expression, assumed zero
Reply
#2

Show Us Line 7834

Try This
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
    {
        new newcar = GetPlayerVehicleID(playerid);
        if(newcar == 520)
        {
           if(AccInfo[playerid][Level] >= 3)
            {
                RemovePlayerFromVehicle(playerid);
            }
        }
    }
    return 1;
}
Reply
#3

Try this

pawn Код:
if(AccInfo[playerid][Level] >= 3)
I'm not sure about it
Reply
#4

LINE 7834

pawn Код:
if(AccInfo[playerid][Level] >= 3))
Reply
#5

Did you try to replace it with
pawn Код:
if(AccInfo[playerid][Level] >= 3)
Reply
#6

im not sure as RuthelessThuG

try using only 1 ) instead of 2 ))

try using this

pawn Код:
if(AccInfo[playerid][Level] >= 3)
Reply
#7

Quote:
Originally Posted by pds2012
Посмотреть сообщение
im not sure as RuthelessThuG

try using only 1 ) instead of 2 ))

try using this

pawn Код:
if(AccInfo[playerid][Level] >= 3)
^ Dammn, i was too late, but yeah use one ) instead of ))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)