Error in cmd.
#2

Lol..
pawn Код:
if(PInfo[playerid][Vip] == 1)
It will only work if the players Vip variable is 1, it's doing what it has to do..
pawn Код:
CMD:neon(playerid,params[])
{
    if(!IsVehicleValid(GetVehicleModel(GetPlayerVehicleID(playerid)))) return SendClientMessage(playerid, COLOR_ERROR, "You can't use neon on this vehicle.");
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_ERROR, "You must be the driver of a vehicle to use this.");
    ShowPlayerDialog(playerid, DIALOG_NEONTYPES, DIALOG_STYLE_LIST, "Neon Settings", "Solid Neon/No Flash\nSimultaneous Flash\nAlternating Flash\nRemove All Neon", "Select", "Cancel");
    return 1;
}
The code above will work even if you're not VIP.
Reply


Messages In This Thread
Error in cmd. - by wendylorenzo - 02.08.2013, 19:47
Re: Error in cmd. - by Jstylezzz - 02.08.2013, 19:50
Re: Error in cmd. - by wendylorenzo - 02.08.2013, 19:52
Re: Error in cmd. - by Jstylezzz - 02.08.2013, 19:57

Forum Jump:


Users browsing this thread: 1 Guest(s)