A bit confused .. ( var1 < var2 && var3 >= 1
#7

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
not sure
but i think there is same message when giving or taking exp so u got confused
so
pawn Код:
else
        {
            format(Text, sizeof(Text), "You've received {FC4949}%d experience!", amount), SendClientMessage(playerid, -1, Text);
            gPlayerInfo[playerid][gExperience] -= amount;
        }
change the above to following
pawn Код:
else
        {
            format(Text, sizeof(Text), "A amount of {FC4949}%d experience was taken from you..", amount), SendClientMessage(playerid, -1, Text);
            gPlayerInfo[playerid][gExperience] -= amount;
        }
I already changed the text, and yeah, it was a bit confusing too xD
Anyways, here's how I use the stock; ( just a small line )
pawn Код:
if(gPlayerInfo[playerid][gRExperience] >= 50) SendClientMessage(playerid, -1, "Nitestick bought for 50 xp!"), GiveExperience(playerid, -50), gPlayerInfo[playerid][Slot][1] = 1;
But If I use -, it counts it up.

Should I maybe create a "TakeExperience"? ;d

EDIT: Yeah, created a "TakeExperience" and it works now.
Reply


Messages In This Thread
A bit confused .. ( var1 < var2 && var3 >= 1 - by Kyance - 07.09.2014, 08:56
Re: A bit confused .. ( var1 < var2 && var3 >= 1 - by Stinged - 07.09.2014, 09:00
Re: A bit confused .. ( var1 < var2 && var3 >= 1 - by Kyance - 07.09.2014, 09:14
Re: A bit confused .. ( var1 < var2 && var3 >= 1 - by BroZeus - 07.09.2014, 09:40
Re: A bit confused .. ( var1 < var2 && var3 >= 1 - by Kyance - 07.09.2014, 10:52
Re: A bit confused .. ( var1 < var2 && var3 >= 1 - by BroZeus - 07.09.2014, 10:57
Re: A bit confused .. ( var1 < var2 && var3 >= 1 - by Kyance - 07.09.2014, 11:00
Re: A bit confused .. ( var1 < var2 && var3 >= 1 - by BroZeus - 07.09.2014, 11:09
Re: A bit confused .. ( var1 < var2 && var3 >= 1 - by Kyance - 07.09.2014, 11:09

Forum Jump:


Users browsing this thread: 1 Guest(s)