17.02.2013, 08:34
hello, i have a little problem with my created command.
When i type /notice text, it just gives me: Lietojums: /notice [text](Lietojums-Usage)
Can somebody please edit for me? thanks
pawn Код:
if(!strcmp(cmd, "/notice"))
{
if(GetPlayerScore(playerid) >= 18)
{
new text[128];
{
if(sscanf(cmds, "s[128]",text)) return SendClientMessage(playerid, 0xFFFFFFFF, "Lietojums: /notice [text]");
{
new string[128];
new pName[128];
GetPlayerName(playerid,pName,128);
format(string,sizeof string,"Spēlētāja %s paziņojums: %s",pName,text);
SendClientMessageToAll(0xA10000AA,string);
return 1;
}
}
}
else
{
SendClientMessage(playerid,0xC0C0C0C8,"Tev vajadzīgs 18. Līmenis lai lietotu љo komandu!");
}
return 1;
}
Can somebody please edit for me? thanks


