Who can help me?
#4

Quote:
Originally Posted by kbalor
Посмотреть сообщение
pawn Код:
#include <zcmd>
#include <sscanf>

new *name of the var/string*;
[PAW]COMMAND:yourcommand(playerid, params[])
{
new tmpstring[164], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(sscanf(params, "s[128]", tmpstring))
{
SendClientMessage(ANGRY_COLOR, ERROR_RED, "ERROR: Usage /n [message]");
return 1;
}
else
{
format(tmpstring, sizeof(tmpstring), "(NEWBIE) %s: %s ", name, tmpstring);
SendClientMessageToAll(GetPlayerColor(playerid), tmpstring);
}
return 1;
}[/PAWN]
Credits to FalconX
Serisusly use pawn code i haven't either understood one line
Reply


Messages In This Thread
Who can help me? - by Shannkz - 18.08.2012, 13:57
Re: Who can help me? - by RanSEE - 18.08.2012, 14:03
Re: Who can help me? - by kbalor - 18.08.2012, 14:05
Re: Who can help me? - by HyDrAtIc - 18.08.2012, 14:06
Re: Who can help me? - by RanSEE - 18.08.2012, 15:19
Re: Who can help me? - by Shannkz - 20.08.2012, 10:57
Re: Who can help me? - by kbalor - 20.08.2012, 11:09
Re: Who can help me? - by Shannkz - 20.08.2012, 11:15
Re: Who can help me? - by kbalor - 20.08.2012, 11:23
Re: Who can help me? - by Shannkz - 20.08.2012, 11:55

Forum Jump:


Users browsing this thread: 1 Guest(s)