compound statement not closed at the end of file (started at line 831)
#6

Here let me fix it up for you.
pawn Код:
#define sportscar 990
new Float:x, Float:y, Float:z; // On top of your script under includes, because we're making it GLOBAL
CMD:buysports(playerid, params[])
{
    if(!IsPlayerInRangeOfPoint(playerid, 3.0, 546.2457,-1280.3177,17.2482)) return SendClientMessage(playerid,-1,"You Should Be At The Shop to Buy This!");
    ShowPlayerDialog(playerid, sportscars, DIALOG_STYLE_LIST, "Sports Cars", "Buffalo\nAlpha\nBanshee\nBlista Compact\nBullet\nCheetah\nClub\nEuros\nFlash\nHotring Racer 1\nHotring Racer 2\nInfernus\nJester\nPhoenix\nSabre\nSuper GT\nTurismo\nUranus\nZR-350", "Buy", "button2[]");
    return 1;
}
Now on Dialog Response.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case sportscar:
           {
switch(listitem)
{
               case 0:
               {
               CreateVehicle(402, x, y, z, 0, 0, 0, 0); //This is the 831 line which he signals as bad one.
               }
       }
}
return 1;
}
PS: sorry for fucked up intendations, scripted it here.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)