Varible/Onplayertext - 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: Varible/Onplayertext (
/showthread.php?tid=197038)
Varible/Onplayertext -
Kyle - 07.12.2010
If I had this:
pawn Код:
if(var == 1 && var2 == 4 && var3 == 6)
{
printf("lol");
}
It would let me in regardless what ever the vars are.
Try to help, Thanks.
But if it was like this spreadout
pawn Код:
if(var == 1)
{
  if(var2 == 4)
  {
    if(var3 == 6)
    {
    }
  }
}
The second one would work perfect, Its the first code which fucks up. WHY!
Re: Varible/Onplayertext -
iggy1 - 07.12.2010
I'm not sure why your getting odd results from the first code, but its probably better using the second piece anyway as you have much more control over what is happening. Not the answer you want probably, but no-one else is replying so i thort i would.