[POMOC] error 010: invalid function or declaration

Započeo [CH]Ivan_Lukic, Februar 20, 2011, 15:22:16 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:GTARP
Detaljan opis problema: ubacivo komandu s dialogom e sad dobijem neke erore u ondialogresponse...
Dio skripte:
Errori---
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14057) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14059) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14061) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14066) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14071) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14076) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14081) : 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(14091) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14096) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14101) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14106) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14111) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14116) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14121) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14126) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14131) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14136) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14141) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14147) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14149) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


evo vam jedan linija--
if(listitem == 3)

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

Hvala

- Mozes li poslati cjeli jedan dialog ?

Jer mozda nisi nesto dobro postavio..

Ili si dodao "OnDialogResponse" na krivo mjesto :)

    if(dialogid == oruzje)
{
if(response)
{
if(listitem == 0)
{
SetPlayerArmour(playerid,100);
GivePlayerMoney(playerid,-1000);
    }
if(listitem == 1)
{
GivePlayerWeapon(playerid,4,1);
GivePlayerMoney(playerid,-10);
    }
    if(listitem == 2)
{
GivePlayerWeapon(playerid,1,1);
GivePlayerMoney(playerid,-5);
    }
    if(listitem == 3)
{
GivePlayerWeapon(playerid,5,1);
GivePlayerMoney(playerid,-8);
    }
    if(listitem == 4)
{
GivePlayerWeapon(playerid,8,1);
GivePlayerMoney(playerid,-12);
    }
if(listitem == 5)
{
GivePlayerWeapon(playerid,22,500);
GivePlayerMoney(playerid,-500);
    }
    if(listitem == 6)
{
GivePlayerWeapon(playerid,23,500);
GivePlayerMoney(playerid,-700);
    }
    if(listitem == 7)
{
GivePlayerWeapon(playerid,24,500);
GivePlayerMoney(playerid,-900);
    }
    if(listitem == 8)
{
GivePlayerWeapon(playerid,25,500);
GivePlayerMoney(playerid,-1000);
    }
    if(listitem == 9)
{
GivePlayerWeapon(playerid,26,500);
GivePlayerMoney(playerid,-1200);
    }
    if(listitem == 10)
{
GivePlayerWeapon(playerid,27,500);
GivePlayerMoney(playerid,-1400);
    }
    if(listitem == 11)
{
GivePlayerWeapon(playerid,28,1000);
GivePlayerMoney(playerid,-1000);
    }
    if(listitem == 12)
{
GivePlayerWeapon(playerid,29,1000);
GivePlayerMoney(playerid,-1500);
    }
    if(listitem == 13)
{
GivePlayerWeapon(playerid,30,1500);
GivePlayerMoney(playerid,-2000);
    }
    if(listitem == 14)
{
GivePlayerWeapon(playerid,31,1500);
GivePlayerMoney(playerid,-2100);
    }
    if(listitem == 15)
{
GivePlayerWeapon(playerid,32,500);
GivePlayerMoney(playerid,-800);
    }
    if(listitem == 16)
{
GivePlayerWeapon(playerid,34,50);
GivePlayerMoney(playerid,-3000);
    }
}
return 1;
    }
    return 0;
}




komanda:



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;
}
Poslednja Izmena: Februar 20, 2011, 15:39:08 POSLE PODNE od [CH]Ivan_Lukic

Idi u pawno , stisni CTRL + F i trazi "#define" , i onda dodaj jos jedan #define kod ostalih

pod imenom "#define oruzje 1"

Ovo " 1 " to ti je dialog ID , ali smo pod brojem , ako imas vec neki dialog , onda samo stavi za jedan

broj vise od toga..

jel mogu stavit npr da imam dialog 5 jel mogu stavit 1 posto ga nema..

Nisam bas razumio..

Ako ti je to prvi dialog u skripti , mozes staviti "#define oruzje 1" a mozes i "#define oruzje 999"

to si sam odredis.. Samo nemozes imati isti ID dialoga , jer ce se pomjesati sve..

ok ali ovo mi nije pomoglo....dobio sam opet erore

D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(378) : error 020: invalid symbol name ""
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(14060) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14062) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14067) : 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(14077) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14082) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14087) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14092) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14097) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14102) : 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(14112) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14117) : 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(14127) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14132) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14137) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14142) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14148) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(14150) : error 010: invalid function or declaration
D:\New Folder (5)\a Najnoviji\gamemodes\crostyle.pwn(42957) : warning 203: symbol is never used: ""
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


22 Errors.

Mozes li mi poslati ove redove


(14058)
(387)

Nesto nisi dobro napravio..

14058------ 
if(dialogid == oruzje)


378------

to sam rjesio sad opet imam one errore...pod tim brojem mi je bilo new oruzje;
tako sam bio definiso ali nisam dobro..