Error With Spoiler Command
#1

Sorry to disturb you errors are fixed now
Reply
#2

Try this.
pawn Код:
CMD:spoiler(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 7.0, -1979.3672,440.1091,27) || IsPlayerInRangeOfPoint(playerid, 7.0, -1913.9288, 303.6583, 41.1585)) {
        if(GetPlayerMoney(playerid) < 4999) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough Cash!");
        {
            if(IsPlayerInAnyVehicle(playerid)) {
                if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) {
                    SendClientMessage(playerid, COLOR_WHITE, "You are not the driver");
                    return 1;
                }
                new vehicleid;
                vehicleid = GetPlayerVehicleID(playerid);
                if(IsTuner(GetVehicleModel(vehicleid))) {
                    ShowPlayerDialog(playerid,1240,DIALOG_STYLE_LIST,"Spoilers","Spoiler Pro\nSpoiler Win\nSpoiler Drag\nSpoiler Alpha\nSpoiler Race\nSpoiler Worx\nRemove Spoiler","Ok", "Cancel");
                    return 1;
                }
            }
            else {
                SendClientMessage(playerid, COLOR_WHITE, " You are not in a vehicle");
            }
        }
        else {
            SendClientMessage(playerid, COLOR_WHITE, " You are not in a Spoiler Shop");
        }
    }
    return 1;
}
Reply
#3

And which line is line 4282?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)