What's Wrong?
#1

Ok here is the code:
pawn Код:
new AdminVehicle[][] =
{
    {"425"},
    {"430"},
    {"432"},
    {"520"},
    {"601"}
};

public OnPlayerStateChange(playerid, newstate, oldstate)
{
        if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == AdminVehicle){
        if(!IsPlayerAdmin(playerid))
        {
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid,0xFF0000FF,"Admins only!");}
        }
        return 1;
}
And here is the error:
Код:
C:\Documents and Settings\Ћeljko\Desktop\SA-MP Server\gamemodes\Untitled.pwn(44) : error 033: array must be indexed (variable "AdminVehicle")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
What's Wrong? - by ThePrograme - 11.09.2012, 18:51
Re: What's Wrong? - by Roach_ - 11.09.2012, 18:54
Re: What's Wrong? - by Babul - 11.09.2012, 18:59
Re: What's Wrong? - by ThePrograme - 11.09.2012, 19:00
Re: What's Wrong? - by ThePrograme - 11.09.2012, 19:03

Forum Jump:


Users browsing this thread: 3 Guest(s)