SA-MP Forums Archive
Help GM - 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)
+--- Thread: Help GM (/showthread.php?tid=454748)



Help GM - Madalyinn - 30.07.2013

pawn Код:
C:\Users\Madalin\Desktop\Server12\gamemodes\Godfather.pwn(38362) : error 017: undefined symbol "neondialog"
C:\Users\Madalin\Desktop\Server12\gamemodes\Godfather.pwn(57442) : warning 202: number of arguments does not match definition
C:\Users\Madalin\Desktop\Server12\gamemodes\Godfather.pwn(57442) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

pawn Код:
//-------------------------------[NEON]--------------------------------------------
    if (strcmp(cmdtext, "/neon", true)==0)
    {
        if(GetVehicleModel(vehid) == 522 || GetVehicleModel(vehid) == 521 || GetVehicleModel(vehid) == 523 || GetVehicleModel(vehid) == 581 || GetVehicleModel(vehid) == 586
        || GetVehicleModel(vehid) == 509 || GetVehicleModel(vehid) == 510 || GetVehicleModel(vehid) == 481 || GetVehicleModel(vehid) == 468 || GetVehicleModel(vehid) == 461 || GetVehicleModel(vehid) == 462 || GetVehicleModel(vehid) == 463)
        {
            SendClientMessage(playerid, COLOR_GREY, " * You can't add neon on bike");
        }
        else
        {
            if(PlayerInfo[playerid][pNfs] > 0 || PlayerInfo[playerid][pAdmin] >= 1338  )
            {
                if(IsPlayerInAnyVehicle(playerid))
                {
    38362               ShowPlayerDialog(playerid, neondialog, DIALOG_STYLE_LIST, "                {C663FF}Need For Speed Club Neons", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nRemove the neon", "Add", "Cancel");
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GRAD1, " * You are not in vehicle!");
                }
            }
            else SendClientMessage(playerid, COLOR_GRAD1, " * You are not a member of NFS Club");
        }
        return 1;
    }



Re: Help GM - ScRipTeRi - 30.07.2013

pawn Код:
#define neondialog 24245