if statement wouldn't work
#3

Quote:
Originally Posted by Sascha
Посмотреть сообщение
hm I'm not sure if I'm right or not, however it seems a bit weird to me to use the "GetPVarInt" within the enum array..
I get the "KillStreak1" PVar shadows the current killstreak of a player and it looks weird to use it as an array part of the whole variable..
however I might just not understand it right.. it just seems weird to me
Dont worry, I've found a quick and simply solution that my head didn't think about for the past 1 hour lol.

pawn Код:
if(GetPVarInt(playerid, "Killstreak1") == KS_SPYPLANE)
{
}
Worked out just perfect. Anyway thanks for the help people. My code is simply hard to understand if you're not me lol
Reply


Messages In This Thread
if statement wouldn't work - by Lorenc_ - 22.06.2011, 11:09
Re: if statement wouldn't work - by Sascha - 22.06.2011, 11:27
Re: if statement wouldn't work - by Lorenc_ - 22.06.2011, 11:33

Forum Jump:


Users browsing this thread: 3 Guest(s)