SA-MP Forums Archive
Need Help with 2 errors - 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)
+--- Thread: Need Help with 2 errors (/showthread.php?tid=470912)



Need Help with 2 errors - KaliKs - 20.10.2013

hey guys imma show you 2 errors idk how to fix them so pelase help me

Код:
C:\Users\Erik\Desktop\Uus kaust\High End Roleplay\gamemodes\FGRP.pwn(35951) : error 017: undefined symbol "rand"
C:\Users\Erik\Desktop\Uus kaust\High End Roleplay\gamemodes\FGRP.pwn(35958) : error 017: undefined symbol "rand"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Код:
35951: if(rand == 0)
35958: if(rand == 1)



Re: Need Help with 2 errors - Patrick - 20.10.2013

You should have something like this
pawn Код:
new rand = random(..);



Re: Need Help with 2 errors - KaliKs - 20.10.2013

ty got it working now