[Question]How to cheking an array? - 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: [Question]How to cheking an array? (
/showthread.php?tid=305825)
[Question]How to cheking an array? -
RebeloX - 24.12.2011
Hi guys i have a Question for you.
How i can checking if an array exists?
Thanks (:
BlueX'
Re: [Question]How to cheking an array? -
[O.z]Caroline - 24.12.2011
no, no have.
or you whether read/Search value in array ?
Exemple:
pawn Код:
new MyArray[200];
//
MyArray[125] = 500;
//To Search:
for(new i; i != sizeof(MyArray); ++i)
{
if(MyArray[i] == 500) printf("I thought!, Array[%i] equal %d", i, 500);
}