SA-MP Forums Archive
small problem. - 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: small problem. (/showthread.php?tid=229167)



small problem. - SmugglesJr - 21.02.2011

Hey so just before my script compiled fine untill this.

pawn Код:
C:\Users\Alexanders\Desktop\URPG Freeroam\gamemodes\URPGFree.pwn(608) : error 047: array sizes do not match, or destination array is too small
C:\Users\Alexanders\Desktop\URPG Freeroam\gamemodes\URPGFree.pwn(653) : error 047: array sizes do not match, or destination array is too small
C:\Users\Alexanders\Desktop\URPG Freeroam\gamemodes\URPGFree.pwn(747) : error 047: array sizes do not match, or destination array is too small
C:\Users\Alexanders\Desktop\URPG Freeroam\gamemodes\URPGFree.pwn(797) : error 047: array sizes do not match, or destination array is too small
C:\Users\Alexanders\Desktop\URPG Freeroam\gamemodes\URPGFree.pwn(809) : error 047: array sizes do not match, or destination array is too small
C:\Users\Alexanders\Desktop\URPG Freeroam\gamemodes\URPGFree.pwn(908) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.
here are the lines

pawn Код:
cmd = strtok(cmdtext, idx); = 608
tmp = strtok(cmdtext, idx); = 653
tmp = strtok(cmdtext, idx); = 747
tmp = strtok(cmdtext, idx); = 797
tmp = strtok(cmdtext, idx); = 809
tmp = strtok(cmdtext, idx); = 908
any idea what could be wrong :P?


Re: small problem. - jaydon - 21.02.2011

Look this may be wrong someone correct me if i am, but try putting this at the top of your script

#pragma unused strtok


Re: small problem. - SmugglesJr - 21.02.2011

Yeah doesn't work.


Re: small problem. - jaydon - 21.02.2011

Okay then i probaly cant help ya there sozz


Re: small problem. - SmugglesJr - 21.02.2011

It compiled right after you said to do the new script but then i re-compiled to make sure and those errors popped up


Re: small problem. - jaydon - 21.02.2011

Yepp that means the Dini is all fixed and it can read from it, is this like a login/administration system?


Re: small problem. - SmugglesJr - 21.02.2011

Yes... but how ever those errors i have no idea how i caused them.


Re: small problem. - jaydon - 21.02.2011

i think the numbers are too small at the end or maybe to large?

Код:
cmd = strtok(cmdtext, idx); = 608
tmp = strtok(cmdtext, idx); = 653
tmp = strtok(cmdtext, idx); = 747
tmp = strtok(cmdtext, idx); = 797
tmp = strtok(cmdtext, idx); = 809
tmp = strtok(cmdtext, idx); = 908
just taking a wild guess


Re: small problem. - SmugglesJr - 21.02.2011

at this part = 608 etc i put that there to show which line is which :P


Re: small problem. - jaydon - 21.02.2011

just had a look at a few other post with people that had the same problem with tmp = strtok(cmdtext, idx); ect they seemed to think that there is a missing '{' or '}' somewhere near..