SA-MP Forums Archive
Error With Spoiler Command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error With Spoiler Command (/showthread.php?tid=276633)



Error With Spoiler Command - shaikh007 - 14.08.2011

Sorry to disturb you errors are fixed now


Re: Error With Spoiler Command - Darnell - 14.08.2011

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;
}



Re: Error With Spoiler Command - Wesley221 - 14.08.2011

And which line is line 4282?