[POMOC] Erori!

Započeo [CH]Ivan_Lukic, Februar 19, 2011, 19:15:39 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:GTARP(gf)
Detaljan opis problema:ubacivo sam komandu da mogu na nekom mjestu kucat komandu za oruzje on izbaci meni ..itd..
Dio skripte:
evo erora:
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(2929) : warning 219: local variable "sendername" shadows a variable at a preceding level
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(5885) : warning 219: local variable "sendername" shadows a variable at a preceding level
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(8239) : warning 219: local variable "sendername" shadows a variable at a preceding level
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(8255) : warning 219: local variable "sendername" shadows a variable at a preceding level
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(8266) : warning 219: local variable "sendername" shadows a variable at a preceding level
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(8277) : warning 219: local variable "sendername" shadows a variable at a preceding level
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(13998) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14000) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14002) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14009) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14016) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14023) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14030) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14037) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14044) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14051) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14058) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14065) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14072) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14079) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14086) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14093) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14100) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14107) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14114) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14122) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14124) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14135) : warning 219: local variable "sendername" shadows a variable at a preceding level
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(39763) : warning 219: local variable "sendername" shadows a variable at a preceding level
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(42768) : warning 219: local variable "sendername" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


21 Errors.



evo komande:
if (strcmp("/areagun", cmdtext, true, 10) == 0)
{
        if(PlayerToPoint(4.0,playerid,246.1571,1859.5685,14.0840))
        {
ShowPlayerDialog(playerid,oruzje, DIALOG_STYLE_LIST, "Kupovina oruzja:", "Pancir (1000$) \nNoz (10$)\nBokser (5$)\nBeizbolska Palica (8$)\nKatana (12$)\n9mm Pistolj (500$)\nTihi 9mm (700$)\nDesert Eagle (900$)\nShotgun (1000$)\nSawn-off Shotgun (1200$)\nCombat Shotgun (1400$)\nMicro SMG (1000$)\nSMG (1500$)\nAK47 (2000$)\nM4 (2100$)\nTec9 (800$)\nSniper (3000$)", "Izaberi", "Izadji");
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "%s je kucao /areagun!", sendername);
SendClientMessage(playerid, COLOR_BLUE, string);
}
else
{
    SendClientMessage(playerid,COLOR_BLUE,"Nisi u Arei!");
}
return 1;
}


i evo ondialogresponse
    if(dialogid == oruzje)
{
if(response)
{
if(listitem == 0)
{
format(string, sizeof(string), "Cestitamo %s,kupio si Pancir!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
SetPlayerArmour(playerid,100);
GivePlayerMoney(playerid,-1000);
    }
if(listitem == 1)
{
format(string, sizeof(string), "Cestitamo %s,kupio si Noz!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,4,1);
GivePlayerMoney(playerid,-10);
    }
    if(listitem == 2)
{
format(string, sizeof(string), "Cestitamo %s,kupio si Bokser!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,1,1);
GivePlayerMoney(playerid,-5);
    }
    if(listitem == 3)
{
format(string, sizeof(string), "Cestitamo %s,kupio si Beizbolsku Palicu!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,5,1);
GivePlayerMoney(playerid,-8);
    }
    if(listitem == 4)
{
format(string, sizeof(string), "Cestitamo %s,kupio si Katanu!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,8,1);
GivePlayerMoney(playerid,-12);
    }
if(listitem == 5)
{
format(string, sizeof(string), "Cestitamo %s,kupio si 9mm Pistolj!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,22,500);
GivePlayerMoney(playerid,-500);
    }
    if(listitem == 6)
{
format(string, sizeof(string), "Cestitamo %s,Pistolj sa Prigusivacem!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,23,500);
GivePlayerMoney(playerid,-700);
    }
    if(listitem == 7)
{
format(string, sizeof(string), "Cestitamo %s,kupio si Desert Eagle!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,24,500);
GivePlayerMoney(playerid,-900);
    }
    if(listitem == 8)
{
format(string, sizeof(string), "Cestitamo %s,kupio si Shotgun!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,25,500);
GivePlayerMoney(playerid,-1000);
    }
    if(listitem == 9)
{
format(string, sizeof(string), "Cestitamo %s,kupio si Sawn-off Shotgun!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,26,500);
GivePlayerMoney(playerid,-1200);
    }
    if(listitem == 10)
{
format(string, sizeof(string), "Cestitamo %s,kupio si Combat Shotgun!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,27,500);
GivePlayerMoney(playerid,-1400);
    }
    if(listitem == 11)
{
format(string, sizeof(string), "Cestitamo %s,kupio si Micro SMG!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,28,1000);
GivePlayerMoney(playerid,-1000);
    }
    if(listitem == 12)
{
format(string, sizeof(string), "Cestitamo %s,kupio si SMG!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,29,1000);
GivePlayerMoney(playerid,-1500);
    }
    if(listitem == 13)
{
format(string, sizeof(string), "Cestitamo %s,kupio si AK47!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,30,1500);
GivePlayerMoney(playerid,-2000);
    }
    if(listitem == 14)
{
format(string, sizeof(string), "Cestitamo %s,kupio si M4!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,31,1500);
GivePlayerMoney(playerid,-2100);
    }
    if(listitem == 15)
{
format(string, sizeof(string), "Cestitamo %s,kupio si Tec9!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,32,500);
GivePlayerMoney(playerid,-800);
    }
    if(listitem == 16)
{
format(string, sizeof(string), "Cestitamo %s,kupio si Sniper!", sendername);
GameTextForPlayer(playerid,string, 4000, 3);
GivePlayerWeapon(playerid,34,50);
GivePlayerMoney(playerid,-3000);
    }
}
return 1;
    }
    return 0;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): /