07.07.2010, 19:10
so... i am using this filterscript.... anytime i have anything in any of my scripts, that uses the function "ShowPlayerDialog" i get a whole list of errors........ here is some coding i am using that was put up by Mo3.....
When I compile it... i get these errors..
this occurs on every script i have that i try to make a dialog box appear for.... please help!!
Код:
/* This dialog PM system has been developed by Mo3. Please keep these credits. */ #include <a_samp> new ReceiverID[MAX_PLAYERS]; new PMfrom[MAX_PLAYERS]; new reply[MAX_PLAYERS]; public OnPlayerConnect(playerid) { reply[playerid] = 0; return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/pm", true)) { ShowPlayerDialog(playerid,755,DIALOG_STYLE_INPUT,"Private Message System","Enter the receiverґs ID","Done","Cancel"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new s1[264],s2[264],name[24]; if(dialogid == 755) { ReceiverID[playerid] = strval(inputtext); ShowPlayerDialog(playerid,756,DIALOG_STYLE_INPUT,"Private Message System","Enter the text you want to send:","Send","Cancel"); return 1; } if(dialogid == 756) { if(response == 1) { if(reply[playerid] == 0) { PMfrom[ReceiverID[playerid]] = playerid; GetPlayerName(playerid, name, sizeof(name)); format(s1, sizeof(s1), "You have received a new PM from %s\n\n%s",name,inputtext); format(s2, sizeof(s2), "New PM from %s (%d)",name,playerid); ShowPlayerDialog(ReceiverID[playerid],757,DIALOG_STYLE_MSGBOX,s2,s1,"Reply","Close"); PlayerPlaySound(ReceiverID[playerid], 1052, 0.0, 0.0, 0.0); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); } else if(reply[playerid] == 1) { PMfrom[ReceiverID[playerid]] = playerid; GetPlayerName(playerid, name, sizeof(name)); format(s1, sizeof(s1), "You have received a new PM from %s\n\n%s",name,inputtext); format(s2, sizeof(s2), "New PM from %s (%d)",name,playerid); ShowPlayerDialog(PMfrom[playerid],757,DIALOG_STYLE_MSGBOX,s2,s1,"Reply","Close"); reply[playerid] = 0; PlayerPlaySound(PMfrom[playerid], 1052, 0.0, 0.0, 0.0); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); } } return 1; } if(dialogid == 757) { if(response == 1) { ShowPlayerDialog(playerid,756,DIALOG_STYLE_INPUT,"Private Message System","Enter the text you want to send:","Done","Cancel"); reply[playerid] = 1; return 1; } } return 0; } stock GetPlayerID(const Name[]) { for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new pName[MAX_PLAYER_NAME]; GetPlayerName(i, pName, sizeof(pName)); if(strcmp(Name, pName, true)==0) { return i; } } } return -1; }
When I compile it... i get these errors..
Код:
C:\Users\owner\Desktop\my samp server\filterscripts\dipm.pwn(20) : error 017: undefined symbol "ShowPlayerDialog" C:\Users\owner\Desktop\my samp server\filterscripts\dipm.pwn(26) : warning 235: public function lacks forward declaration (symbol "OnDialogResponse") C:\Users\owner\Desktop\my samp server\filterscripts\dipm.pwn(32) : error 017: undefined symbol "ShowPlayerDialog" C:\Users\owner\Desktop\my samp server\filterscripts\dipm.pwn(45) : error 017: undefined symbol "ShowPlayerDialog" C:\Users\owner\Desktop\my samp server\filterscripts\dipm.pwn(55) : error 017: undefined symbol "ShowPlayerDialog" C:\Users\owner\Desktop\my samp server\filterscripts\dipm.pwn(67) : error 017: undefined symbol "ShowPlayerDialog" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
this occurs on every script i have that i try to make a dialog box appear for.... please help!!