SA-MP Forums Archive
Compile error - 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: Compile error (/showthread.php?tid=590857)



Compile error - NexySamp - 04.10.2015

The command
PHP код:
CMD:event(playerid,params[]) 

    
ShowPlayerDialog(playerid,7323,DIALOG_STYLE_LIST"Event Locations","Event Location 1/nEvent Location 2/nEvent Location 3/nEvent Location 4""Select""Close"); 

OnDialogResponse(playeriddialogidresponselistiteminputtext[]) 

    if(
dialogid == 7323
    { 
        if(
response
        { 
            switch(
listitem
            { 
                case 
0:SetPlayerPos(playeridxyz); 
                case 
1:SetPlayerPos(playeridxyz); 
                case 
2:SetPlayerPos(playeridxyz); 
                case 
3:SetPlayerPos(playeridxyz); 
            } 
        } 
        return 
1
    } 
    return 
0

The problem
Код:
C:\Users\Nexy\Desktop\Yugoslavia Trucking v.0.3.7\Yugoslavia Trucking v.0.3.7\gamemodes\YT.pwn(1979) : error 021: symbol already defined: "JBC_OnDialogResponse"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: Compile error - AbyssMorgan - 04.10.2015

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])



Re: Compile error - ATGOggy - 04.10.2015

Do u have another ondialogresponse and ia ur pawn updated?

Edit:- :P i didn't notice that u r missing 'public'