3 errors, need help. - 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: 3 errors, need help. (
/showthread.php?tid=456912)
3 errors, need help. -
SwisherSweet - 08.08.2013
I've been trying to solve this for a while now but i can't -_-
http://pastebin.com/E76Th6xK
here it is...
Re: 3 errors, need help. -
BullseyeHawk - 08.08.2013
pawn Код:
stock GetRandomMap()
{
new file[64];
new i = 0, count = 0, Maps[MAX_MAP_FILES];
for( ; i != MAX_MAP_FILES; ++i)
{
format(file,sizeof(file), "/Maps/%d.ini", i);
if(fexist(file))
{
Maps[count] = i;
count++;
}
else return printf("[NOTICE] File Bugged.");
}
NextMapSet = Maps[random(count)];
return 1;
}
I guess you missplaced else, this code should work. No full code or whatever, so you'll need to check the result by yourself.
Re: 3 errors, need help. -
SwisherSweet - 08.08.2013
Ok thx will test when i get home