I compiled and everything is good, but when I enter the game and write "/ c makevip 3" for example, nothing happens, and even in folder finding nothing, knows no order.
What should I do?
[pawn]if(strcmp(cmdtext,"makevip",true) == 0)
{
if(IsPlayerAdmin(playerid))
{
tmp = strtok(cmdtext, idx);
new plr = FindPlayerIDFromString(tmp);
if(!strlen(team)) SendClientMessage(playerid,COLOR_LIGHT_RED,"USAGE: /c makevip [Nick/ID]");
else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_LIGHT_RED,"Error: Unknown player");
else {
if(IsVIP[plr] == 0)
{
format(szMsg,256,"[VIP SYSTEM]: Admin %s made %s a V.I.P",gPlayers[playerid],gPlayers[plr]);
SendClientMessageToAll(COLOR_YELLOW,szMsg);
IsVIP[plr] = 1;
}
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"[VIP SYSTEM]: You are not authorized to use this command");
}
return 1;
}
else if(strcmp(cmdtext,"takevip",true) == 0)
{
if(IsPlayerAdmin(playerid))
{
tmp = strtok(cmdtext, idx);
new plr;
plr = FindPlayerIDFromString(tmp);
if(!strlen(tmp)) SendClientMessage(playerid,COLOR_LIGHT_RED,"USAGE: /c takevip [Nick/ID]");
else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_LIGHT_RED,"Error: Unknown player");
else {
if(IsVIP[plr] == 1)
{
format(szMsg,256,"[VIP SYSTEM]: Admin %s took %s V.I.P privilegies",gPlayers[playerid],gPlayers[plr]);
SendClientMessageToAll(COLOR_YELLOW,szMsg);
IsVIP[plr] = 0;
}
else
{
SendClientMessage(playerid,COLOR_RED,"[VIP SYSTEM]: That player is not in V.I.P Database");
}
}
}
return 1;
}[/pawn]