18.06.2014, 17:29
HEy i get this error while making a Dialog PM System.
How do make that it sends to another player? and a note that shows that they've gotten a PM.
ERROR:
COMMAND:
How do make that it sends to another player? and a note that shows that they've gotten a PM.
ERROR:
Код:
C:\Users\Linus\Desktop\samptesting\gamemodes\PM.pwn(278) : error 017: undefined symbol "SendPlayerMessage" C:\Users\Linus\Desktop\samptesting\gamemodes\PM.pwn(286) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)//if your using only one dialog this isn't needed but you never know.
{
case 3:
{
if(strlen(inputtext) > 0)
{
line 278: SendPlayerMessage(playerid, inputtext);
}
else
{
SendClientMessage(playerid,0xFFFFFFAA,"Your input was too short.");
}
}
}
return 1;
}
COMMAND:
pawn Код:
CMD:pm(playerid, params[])
{
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_INPUT, "Private Message", "Type your PM here.", "Submit", "Cancel");
return 1;
}