Why does this not change my level
#1

Well i have made it so if your VIP has expired on player on connect it will set your vip level to 0 but it is not changing it to 0

pawn Код:
if(gettime() > VIPexpire)
    {
        SendClientMessage(playerid, WHITE, "You have VIP has expired");
        Player[playerid][VipRank] = 0;
    }
If you need any more code just ask

Thanks
Reply
#2

Do you get this message (You have VIP has expired)? If yes, can you show all the codes under OnPlayerConnect that are related to the vip system and/or your saving system (e.g mysql, dini..etc)?
Reply
#3

Quote:
Originally Posted by HellSphinX
Посмотреть сообщение
Do you get this message (You have VIP has expired)? If yes, can you show all the codes under OnPlayerConnect that are related to the vip system and/or your saving system (e.g mysql, dini..etc)?
Yes i get the message saying my VIP has expired and that is all to do with VIP on on player connect

If you need any more code just ask

Thanks
Reply
#4

pawn Код:
if(gettime() > VIPexpire && Player[playerid][VipRank] != 0)
    {
        SendClientMessage(playerid, WHITE, "You have VIP has expired");
        Player[playerid][VipRank] = 0;
    }
?
Reply
#5

Quote:
Originally Posted by titanak
Посмотреть сообщение
pawn Код:
if(gettime() > VIPexpire && Player[playerid][VipRank] != 0)
    {
        SendClientMessage(playerid, WHITE, "You have VIP has expired");
        Player[playerid][VipRank] = 0;
    }
?
Thats what i have but it dont make my vip rank 0

If you need any more code just ask

Thanks
Reply
#6

Quote:
Originally Posted by Euan Hughes
Посмотреть сообщение
Thats what i have but it dont make my vip rank 0

If you need any more code just ask

Thanks
Then we need to see that gettime() func what it returns
Reply
#7

Where if you mean this

This is on the command where you set some ones vip level

pawn Код:
VIPexpire = gettime() + 60;
If you need any more code just ask

Thanks
Reply
#8

Please help

If you need any more code just ask

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)