Sscanf's "frrezing" strings
#10

pawn Код:
dcmd_pm(playerid, params[])
{
new id, msg[85];
if(sscanf(params, "us[85]", id, msg)) return SendClientMessage(playerid, COLOR_ORANGE, "Hazsnбlat: /Pm [Nйv/ID] [ьzenet]");
if(isnull(msg) || strlen(msg) > 90) return SendClientMessage(playerid, COLOR_RED, "Hibбs PM hosszъsбg! (Min 1->Max 90 karakter)");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED, "Rossz ID / Nйv!");
if(id == playerid) return SendClientMessage(playerid, COLOR_RED, "Nem tudsz PM-t kьldeni magadnak!");
{
SendMSG(playerid, COLOR_YELLOW, ">> %s (%d): %s", pNick(id), id, msg);
SendMSG(id, COLOR_YELLOW, "*** %s (%d): %s", pNick(playerid), playerid, msg);
}
return 1;
}
Reply


Messages In This Thread
Sscanf's "frrezing" strings - by LZLo - 22.12.2010, 17:49
Re: Sscanf's "frrezing" strings - by [MWR]Blood - 22.12.2010, 17:51
Re: Sscanf's "frrezing" strings - by LZLo - 22.12.2010, 17:56
Re: Sscanf's "frrezing" strings - by LZLo - 22.12.2010, 17:59
Re: Sscanf's "frrezing" strings - by Scenario - 22.12.2010, 17:59
Re: Sscanf's "frrezing" strings - by LZLo - 22.12.2010, 18:00
Re: Sscanf's "frrezing" strings - by LZLo - 22.12.2010, 18:03
Re: Sscanf's "frrezing" strings - by LZLo - 22.12.2010, 18:10
Re: Sscanf's "frrezing" strings - by Kyosaur - 22.12.2010, 18:20
Re: Sscanf's "frrezing" strings - by armyoftwo - 22.12.2010, 18:20

Forum Jump:


Users browsing this thread: 1 Guest(s)