11.09.2012, 18:51
Ok here is the code:
And here is the error:
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;
}
Код:
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.