10.03.2010, 10:35
Im trying to make my own PM command using zcmd/sscanf,
And i have run into a little trouble,
I have this at the top of my command
But it just completely ignores:
Does anyone know why?
Ask if you wanna see the full PM cmd
And i have run into a little trouble,
I have this at the top of my command
pawn Код:
CMD:pm(playerid, params[])
{
new id;
new message;
if (sscanf(params, "us", id, message)) SendClientMessage(playerid, COLOR_RED, "Usage ~ /pm [PlayerID/PartOfName] [Message]");
else if (id == playerid) SendClientMessage(playerid, COLOR_RED, "Error ~ You cannot PM yourself");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Error ~ Player not Connected");
else {
pawn Код:
else if (id == playerid) SendClientMessage(playerid, COLOR_RED, "Error ~ You cannot PM yourself");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Error ~ Player not Connected");
Ask if you wanna see the full PM cmd