[POMOC] Error

Započeo aladink, Avgust 01, 2012, 20:50:04 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Evo errori kada ocu compile

C:\Documents and Settings\Aladin\Desktop\New Folder\ammunation.pwn(57) : warning 217: loose indentation
C:\Documents and Settings\Aladin\Desktop\New Folder\ammunation.pwn(129) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Aladin\Desktop\New Folder\ammunation.pwn(139) : warning 217: loose indentation
C:\Documents and Settings\Aladin\Desktop\New Folder\ammunation.pwn(154) : warning 217: loose indentation
C:\Documents and Settings\Aladin\Desktop\New Folder\ammunation.pwn(157) : error 030: compound statement not closed at the end of file (started at line 65)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


A evo linije:

evo za prvi eror :       ShowPlayerDialog(playerid, 30001, DIALOG_STYLE_LIST, "Ammunation Shop", "Shotgun (125)\nMp5 (550)\nDeagle (350)\nM4 (950)\nAK47 (950)\nFullVest (150)", "Kupi", "Izadji");
        }
        return 1;
}
2.         {
                                        GivePlayerMoney(playerid, -950);
                                        SetPlayerArmour(playerid, 30, 60000);
                                        format(string, sizeof(string), "AK47");
3.             }
                     if(listitem == 5)
                     {
4.                               }
                    }
        return 1;
}
#endif


Eto to je to a evo cela skripta:

#define FILTERSCRIPT

#include <a_samp>
#include <zcmd>

#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_RED 0xAA3333AA

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Ammu-Nation Buyable Made By Marchelo");
        print("--------------------------------------\n");
        return 1;
}

public OnFilterScriptExit()
{
        return 1;
}

IsAtAmmu(playerid)
{
        if(IsPlayerConnected(playerid))
        {
                if(IsPlayerInRangeOfPoint(playerid, 50.0, 2539, -133.7294, 999.6016))
                {
                    return 1;
                }
                else if(IsPlayerInRangeOfPoint(playerid, 50.0, 295.1320, -38.5151, 1001.5156))
                {
                    return 1;
                }
                else if(IsPlayerInRangeOfPoint(playerid, 50.0, 296.919982, -108.071998, 1001.515625))
                {
                        return 1;
                }
        }
        return 0;
}

CMD:buygun(playerid, params[])
{
    if(!IsAtAmmu(playerid))
        {
        SendClientMessage(playerid, COLOR_GRAD2, "   Nisi u Ammunation shopu");
        return 1;
    }
    else
    {
        ShowPlayerDialog(playerid, 30001, DIALOG_STYLE_LIST, "Ammunation Shop", "Shotgun (125)\nMp5 (550)\nDeagle (350)\nM4 (950)\nAK47 (950)\nFullVest (150)", "Kupi", "Izadji");
        }
        return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
        new string[2000];
        if(dialogid == 30001)
        {
                if(response)
                {
                        if(listitem == 0)
                        {
                                if (GetPlayerMoney(playerid) >= 125)
                                {
                                        GivePlayerMoney(playerid, -125);
                                        GivePlayerWeapon(playerid, 25, 60000);
                                        format(string, sizeof(string), "Shotgun.");
                                        SendClientMessage(playerid, COLOR_RED, string);
                                }
                                else
                                {
                                        SendClientMessage(playerid, COLOR_GRAD4, "Nemas dovoljno novca!");
                                }
                        }
                        if(listitem == 1)
                        {
                                if (GetPlayerMoney(playerid) >= 550)
                                {
                                        GivePlayerMoney(playerid, -550);
                                        GivePlayerWeapon(playerid, 29, 60000);
                                        format(string, sizeof(string), "Mp5");
                                        SendClientMessage(playerid, COLOR_RED, string);
                                }
                                else
                                {
                                        SendClientMessage(playerid, COLOR_GRAD4, "Nemas dovoljno novca!");
                                }
                        }
                        if(listitem == 2)
                        {
                                if (GetPlayerMoney(playerid) >= 350)
                                {
                                        GivePlayerMoney(playerid, -350);
                                        GivePlayerWeapon(playerid, 24, 60000);
                                        format(string, sizeof(string), "Deagle");
                                        SendClientMessage(playerid, COLOR_RED, string);
                                }
                                else
                                {
                                        SendClientMessage(playerid, COLOR_GRAD4, "Nemas dovoljno novca!");
                                }
                        }
                        if(listitem == 3)
                        {
                                if (GetPlayerMoney(playerid) >= 950)
                                {
                                        GivePlayerMoney(playerid, -950);
                                        GivePlayerWeapon(playerid, 31, 60000);
                                        format(string, sizeof(string), "M4");
                                        SendClientMessage(playerid, COLOR_RED, string);
                                }
                                else
                                {
                                        SendClientMessage(playerid, COLOR_GRAD4, "Nemas dovoljno novca!");
                                }

                        }
                        if(listitem == 4)
                        {
                                if (GetPlayerMoney(playerid) >= 950)
                                {
                                        GivePlayerMoney(playerid, -950);
                                        SetPlayerArmour(playerid, 30, 60000);
                                        format(string, sizeof(string), "AK47");
                                        SendClientMessage(playerid, COLOR_RED, string);
                                }
                                else
                                {
                                        SendClientMessage(playerid, COLOR_GRAD4, "Nemas dovoljno novca!");
                                }
                       
                     }
                     if(listitem == 5)
                     {
                                if (GetPlayerMoney(playerid) >= 150)
                                {
                                        GivePlayerMoney(playerid, -150);
                                        SetPlayerArmour(playerid, 100);
                                        format(string, sizeof(string), "KevlarVest");
                                        SendClientMessage(playerid, COLOR_RED, string);
                                }
                                else
                                {
                                        SendClientMessage(playerid, COLOR_GRAD4, "Nemas dovoljno novca!");
                                       
                                }
                    }
        return 1;
}
#endif

vlado_plavsic