16.12.2012, 18:42
Hello Everyone,I'm working on a test script and i've been trying to get this command to work and It never works
When I type it it just returns nothing at all, simply nothing, no message or anything.
Regards
Oscii

When I type it it just returns nothing at all, simply nothing, no message or anything.
pawn Код:
CMD:f(playerid, params[])
{
new string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(!PlayerInfo[playerid][pFam]) return SendClientMessage(playerid, COLOR_GREY, "You are not in a family.");
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/f)amilychat [text]");
format(string, sizeof(string), "(( ** [OOC] (%d) %s %s: %s ))", PlayerInfo[playerid][pFamRank], RPFaRN(playerid), RPN(playerid), params);
SendPlayerFamMessage(playerid, COLOR_CYAN, string);
return 1;
}
Oscii
