10.01.2012, 19:22
I'm having issues making this command work, and I can't figure out why..
The SendClientMessage never shows up either, so im guessing
Is the issue, how could i fix this? Thanks in advance cookies to all
pawn Код:
CMD:setrankname(playerid, params[])
{
new
pID,
rankname[255],
string[104];
if(sscanf(params, "us[255]", pID, rankname)) return SendClientMessage(playerid, COLOR_RED, "Server: Use the command like this: /setrankname playerid rankname");
if(PlayerInfo[playerid][pRank] == 7)
{
if(PlayerInfo[playerid][pMember] == PlayerInfo[pID][pMember])
{
PlayerInfo[pID][pRank] = rankname;
format( string, sizeof( string ), "Your rank name has been changed to: %s", rankname);
SendClientMessage(pID, COLOR_ORANGE, string);
}
}
return 1;
}
PHP код:
if(PlayerInfo[playerid][pMember] == PlayerInfo[pID][pMember])