if statement wouldn't work
#1

Edit: Solved, topic may now be deleted :S I'm stupid forgive me.
Reply
#2

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
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)