11.03.2012, 14:36
Alright. I was scripting an information which tells any players typed command "/teams" . At first, after I compiled the script, it went smooth. But after I scripted the death options (you know what I mean, after a player killed another, he'll get score & money and otherwise), I compiled and found out the symbol ShowPlayerDialog is an undefined symbol. I was so confused and had no way out. So I'm requesting for help here.
Here's the script:
Oh and, here's the error.
Here's the script:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/teams", cmdtext, true, 10) == 0) //The command
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{FFFFFF}Available Teams on World War 23 TDM Server.","{00FF00}United States of America \n{FFFF00}United Arab Emirates \n{FF0000}Russian Federation \n{FFFFFF}United Asian Forces \n{008000}European Alliance \n{FF4040}North/South Poles","Okay","Okay");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid==1) // The response
{
if(response)
{
SendClientMessage(playerid,0x00FF00FF,"Good that you understand! Now proceed to battle zone and fight the others!");
return 1;
}
else
{
SendClientMessage(playerid,0x00FF00FF,"Good that you understand! Now proceed to battle zone and fight the others!");
return 1;
}
return 1;
}
return 1;
}
Код:
gamemodes\WW23...pwn(477) : error 017: undefined symbol "ShowPlayerDialog"