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