Problem need help
#1

E:\NVCNR\gamemodes\GTACNR.pwn(19775) : error 021: symbol already defined: "S@@_OnDialogResponse"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 10002 && response)
{
if(!Numbers(inputtext) && strval(inputtext) != -1) return SendClientMessage(playerid,DEF_COL_RED,"You only can use numbers!"),ShowPlayerDialog(playerid,10001,DIALOG_ STYLE_LIST,"{A80000}Edit Object","Position\nVirtual World\nInterior ID\nStream Distance\nDelete Object","Next","Close");
new id = EDIT_OBJECT_ID[playerid];
new EDITOR_QUERY[256];
format(EDITOR_QUERY, sizeof(EDITOR_QUERY), "UPDATE `OBJECTS` SET `VW`=%d WHERE `ID`=%d",
strval(inputtext),
EDITOR_OBJECT[id][OBJ_DB_ID]);
db_free_result(db_query(EDITOR_DATABASE, EDITOR_QUERY));
SendClientMessage(playerid,DEF_COL_WHITE,"You successful changed to virtualworld of this object.");
return ShowPlayerDialog(playerid,10001,DIALOG_STYLE_LIST, "{A80000}Edit Object","Position\nVirtual World\nInterior ID\nStream Distance\nDelete Object","Next","Close");
}

and there is line 19775

Quote:

19774: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
19775:{

Reply
#2

Means you have OnDialogResponse 2 times in your script. Open Pawno, CTRL+F and type OnDialogResponse, it should find 2 of them. If Yes, get code from one, cop/paste to second one, delete first.
Reply
#3

Rename one of your "S@@_OnDialogResponse" To something like "S@@@_OnDialogResponse" And also rename the other "S@@_OnDialogResponse" that correspond to that one only.
Reply
#4

Quote:
Originally Posted by EAsT-OAK_510
Посмотреть сообщение
Rename one of your "S@@_OnDialogResponse" To something like "S@@@_OnDialogResponse" And also rename the other "S@@_OnDialogResponse" that correspond to that one only.
If he renames it it will never get called
Reply
#5

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
If he renames it it will never get called
Quote:

And also rename the other "S@@_OnDialogResponse" that correspond to that one only.

He has to change the other "S@@_OnDialogResponse" that are getting called to the second "S@@_OnDialogResponse".
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)