error 029: invalid expression, assumed zero
#1

Okay I got now same error but on other line..

Lines!

Код:
CMD:getgift(playerid, params[])
{
new string[128];

if(IsPlayerInRangeOfPoint(playerid, 3.0,2546.680908, 1403.430786, 7699.584472))
{
if(PlayerInfo[playerid][pDonateRank] >= 1)
{
if(VIPGifts == 0 && PlayerInfo[playerid][pDonateRank] < 4)
{
SendClientMessageEx(playerid, COLOR_GRAD2, "Da Bi Khoa!");
return 1;
}
if(PlayerInfo[playerid][pGiftTime] > 0)
{
SendClientMessageEx(playerid, COLOR_GRAD2, "You already get a gift from last 5 hours!");
return 1;
}
format(string, sizeof(string), "* %s has close his eyes and wish a presents.", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GiftPlayer(MAX_PLAYERS, playerid);
}
}
(16031) : error 029: invalid expression, assumed zero
Код:
if(PlayerInfo[playerid][pDonateRank] >= 1)
(16033) : error 029: invalid expression, assumed zero
Код:
if(VIPGifts == 0 && PlayerInfo[playerid][pDonateRank] < 4)
Reply
#2

pawn Код:
if(PlayerInfo[playerid][pDonateRank] >= 1)
^ change to:

pawn Код:
if(PlayerInfo[playerid][pDonateRank] => 1)
Reply
#3

Nope.. Still same
Reply
#4

You're missing a bracket.

pawn Код:
CMD:getgift(playerid, params[])
{
    new string[128];

    if(IsPlayerInRangeOfPoint(playerid, 3.0,2546.680908, 1403.430786, 7699.584472))
    {
        if(PlayerInfo[playerid][pDonateRank] >= 1)
        {
            if(VIPGifts == 0 && PlayerInfo[playerid][pDonateRank] < 4)
            {
                SendClientMessageEx(playerid, COLOR_GRAD2, "Da Bi Khoa!");
                return 1;
            }
            if(PlayerInfo[playerid][pGiftTime] > 0)
            {
                SendClientMessageEx(playerid, COLOR_GRAD2, "You already get a gift from last 5 hours!");
                return 1;
            }
            format(string, sizeof(string), "* %s has close his eyes and wish a presents.", GetPlayerNameEx(playerid));
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
            GiftPlayer(MAX_PLAYERS, playerid);
        }
    }
    return 1;
}
Reply
#5

Is VIPGifts a boolean?

pawn Код:
if(VIPGifts == false)
Reply
#6

EDIT: Nvm.
Reply
#7

Nope.. Still same problem.. btw. Thanks for your helping guys
Reply
#8

Please show us the definitions of pDonateRank and VIPGifts . With out proper info we can't help you.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)