Problem with COS?
#1

Hello all. I found some great Ownership system but i Have problems..

I using this FS:https://sampforum.blast.hk/showthread.php?pid=1174711#pid1174711

But When I compiled i have this errors:

Код:
C:\Users\Ismet\Desktop\FILTERSCRIPTS\dealership.pwn(1180) : error 021: symbol already defined: "strtok"
C:\Users\Ismet\Desktop\FILTERSCRIPTS\dealership.pwn(1195) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ismet\Desktop\FILTERSCRIPTS\dealership.pwn(1201) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ismet\Desktop\FILTERSCRIPTS\dealership.pwn(1234) : error 047: array sizes do not match, or destination array is too small
C:\Users\Ismet\Desktop\FILTERSCRIPTS\dealership.pwn(1383) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

5 Errors.
I try to delete this STRTOK in Filterscript, but when I go ingame, every command write:You dont own any car, every command.


Please, somebody HELP ME..
Reply
#2

Increase of the size of those variables.
For example: you have new test[10]; but something want to return a trollvalue[30]; into that var, you will get an error because test[10] is too small.
Reply
#3

Quote:
Originally Posted by Seven_of_Nine
Посмотреть сообщение
Increase of the size of those variables.
For example: you have new test[10]; but something want to return a trollvalue[30]; into that var, you will get an error because test[10] is too small.
Thanx you for help, but I dont understant clearly, can you help me here is a script uploaded, and to repair this for me please?

http://solidfiles.com/d/1476/
Reply
#4

Any to helpp me?
Reply
#5

Refresh..
Reply
#6

1. Open dutils.inc (..\pawno\include\dutils.inc)
2. Find strtok function
3. Change
pawn Код:
new result[MAX_STRING];
to
pawn Код:
new result[32];
4. Save dutils.inc
5. Try to compile script
Reply
#7

Thanks you man, I remove stroke now from COS and IT WORKS, THANKS YOU
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)