How to define "senderid"?
#5

Quote:
Originally Posted by Abreezy
Посмотреть сообщение
If you want, use sscanf aswell for the pm command for example:

pawn Код:
CMD:pm(playerid, params[])
{
       new pID, pmsg[128], string[128];
       if(sscanf(params("us[128]", pID,pmsg)) return SendClientMessage(playerid, -1, "You must put playerid and message, /pm playerid message");
       format(string, sizeof(string), "[FROM %i] : %s", playerid, pmsg);
       SendClientMessage(pID, -1, string);
       format(string, sizeof(string), "[TO %i] : %s", pID, pmsg);
       SendClientMessage(playerid, -1, string);
       return 1;
}
This is roughly made, and untest, I made it in the quick reply box.
I already got myself a code, thank you anyways :P. But I will create a new topic with the next problem I have :O.


Best regards,
Jesse

EDIT:
Nevermind, I already fixed the problem for the biggest part. Someone I know can help me with the small part what's left :P
Reply


Messages In This Thread
How to define "senderid"? - by jessejanssen - 17.02.2012, 03:12
Re: How to define "senderid"? - by Abreezy - 17.02.2012, 03:14
Re: How to define "senderid"? - by jessejanssen - 17.02.2012, 03:20
Re: How to define "senderid"? - by Abreezy - 17.02.2012, 03:28
Re: How to define "senderid"? - by jessejanssen - 17.02.2012, 03:40

Forum Jump:


Users browsing this thread: 1 Guest(s)