small problem.
#1

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?
Reply
#2

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

#pragma unused strtok
Reply
#3

Yeah doesn't work.
Reply
#4

Okay then i probaly cant help ya there sozz
Reply
#5

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

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

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

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
Reply
#9

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

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..
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)