problems
#1

I got this /vips command where the player can check the vips but for some reason, when the list shows up, it shows that everyone has vip level 3 (which is the maximum level) even tho I gave them only level 1 or 2. What's the problem ? Here is the command :

PHP код:
CMD:vips(playeridparams[]) {
new 
count 0;
new 
string[256];
new 
name[MAX_PLAYER_NAME];
SendClientMessage(playeridGREEN,"  ");
SendClientMessage(playeridGREEN,"Currently online very important players (vips)");
for(new 
0MAX_PLAYERS++) {
if(
IsPlayerConnected(i)) {
GetPlayerName(inamesizeof(name));
if(
PlayerInfo[i][pVIP] >= 1) {
format(stringsizeof(string),"Donator Level - %d: %s "PlayerInfo[playerid][pVIP],name);
SendClientMessage(playeridPURPLEstring);
count++;
}
}
}
if(
count == 0) {
SendClientMessage(playeridGREEN,"No vips online right now");
}
return 
1;

I don't really know what can be done because I am not getting any errors when compiling the script.
Reply


Messages In This Thread
problems - by Jhony_Blaze - 18.12.2014, 15:43
Re: problems - by JeaSon - 18.12.2014, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)