if statement wouldn't work - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: if statement wouldn't work (
/showthread.php?tid=263525)
if statement wouldn't work -
Lorenc_ - 22.06.2011
Edit: Solved, topic may now be deleted :S I'm stupid forgive me.
Re: if statement wouldn't work -
Sascha - 22.06.2011
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
Re: if statement wouldn't work -
Lorenc_ - 22.06.2011
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