SA-MP Forums Archive
how to fix this ? - 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: how to fix this ? (/showthread.php?tid=565150)



how to fix this ? - Godezz - 25.02.2015

please help me i dont know how to fix this

PHP код:
C:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(49248) : error 021symbol already defined"strtok"
C:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(49263) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(51230) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(51284) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(51367) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(51644) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(51705) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(51868) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(52136) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(52442) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(52530) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(53250) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(53303) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(53314) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(53390) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(53468) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(53816) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(53943) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(54169) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(54202) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(54510) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(54537) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(54566) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(54574) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(54608) : error 047: array sizes do not match, or destination array is too small
C
:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(54616) : error 047: array sizes do not match, or destination array is too small
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase 



Re: how to fix this ? - Alex Magaсa - 25.02.2015

So much errors, try to run .pwn not directly from folder.
Go to pawno folder,open pawno.exe and open gamemode (yourgm.pwn) and compile

If you did this steps already, show us the lines!


Re: how to fix this ? - CalvinC - 25.02.2015

You're trying to define strtok twice, delete one of them.
And you have 2 array sizes that doesn't match.
Show the code for us to fix it.


Re: how to fix this ? - Godezz - 25.02.2015

alex it is the same


Re: how to fix this ? - Godezz - 25.02.2015

what about this

Quote:

C:\Users\Administrator\Desktop\Chinatown RP\gamemodes\nwrp.pwn(23) : fatal error 100: cannot read from file: "strtok"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.




Re: how to fix this ? - CalvinC - 25.02.2015

You don't have "strtok.inc" in your pawno/include folder.
But it's not an include anyways, it's a function, you should although rather just use sscanf.


Re: how to fix this ? - Godezz - 25.02.2015

okei,but i dont know scripting how to do that then?? please help i rly dont know how


Re: how to fix this ? - CalvinC - 25.02.2015

SSCANF tutorial: https://sampforum.blast.hk/showthread.php?tid=300397
strtok function: https://sampwiki.blast.hk/wiki/Strtok