09.03.2013, 22:29
Код:
request[id] == 1
And you are using a different variable, I used "Requested" not request.
EDIT:
Didn't see that "else" there, it should be return.
pawn Код:
CMD:setmember(playerid, params[])
{
new id;
if(gsfmember[playerid] < 2) return SendClientMessage(playerid, 0xFF000000, "You cannot use this command");
if(sscanf(params,"u", id)) return SendClientMessage(playerid, 0xFFFFFF00, "USAGE:/setmember [id]");
if(Requested[id] == false) return SendClientMessage(playerid, 0xFF000000, "This player is not requesting to join your organization!");
{
SendClientMessage(id, 0x99FF0000, "~You have been made a member of Grove Street Families~");
SendClientMessage(playerid, 0x99FF0000, "Member have been set!");
gsfmember[id] = 1;
}
return 1;
}