21.10.2011, 15:30
i have made this command so far and having errors in it help me to solve them
command >>>
and this >>
errors >>>>
command >>>
Код:
if (strcmp("/nv", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid,1338,DIALOG_STYLE_MSGBOX,"[SHOP]","[DO YOU WANT TO BUY NIGHT ******S ??/n THIS WILL COST YOU 5000]""Yes","Quit"); return 1; }
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1338) { if(response) { SendClientMessage(playerid, 0x24FF0AB9, "You Have Spawned Night Vision ******s!"); GivePlayerWeapon(playerid,45,1); } else { SendClientMessage(playerid, 0xAA3333AA, "Selection Cancelled!"); } return 1; } return 0; }
Код:
C:\Documents and Settings\prince\Desktop\server\gamemodes\mygame.pwn(287) : error 021: symbol already defined: "OnDialogResponse" C:\Documents and Settings\prince\Desktop\server\gamemodes\mygame.pwn(158) : error 017: undefined symbol "ShowPlayerDialog"