how to fix this ?
#1

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

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!
Reply
#3

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

alex it is the same
Reply
#5

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.

Reply
#6

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)