14.09.2017, 07:45
Please read about arrays and loops.
https://sampforum.blast.hk/showthread.php?tid=318212
https://sampwiki.blast.hk/wiki/Loops
There's no need to DeerID[0] || DeerID[1] and et cetera in this scenario when you've created the objects with an array.
What's this for?
(jlalt was 3mins quicker.)
https://sampforum.blast.hk/showthread.php?tid=318212
https://sampwiki.blast.hk/wiki/Loops
PHP код:
for(new i = 0; i < sizeof DeerID; i++)
{
if(hitid == DeerID[i])
{
// code...
}
}
What's this for?
Код:
SetTimer("SpawnDeers", 850*60*5, 0);