Error help in script. 3 errors
#1

C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(17785) : error 025: function heading differs from prototype
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(17786) : error 021: symbol already defined: "strtok"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(17796) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.



Code:
{
new ret[256], i = 0, len = strlen(string);
while(string[idx] == seperator && idx < len) idx++;
while(string[idx] != seperator && idx < len)
{
ret[i] = string[idx];
i++;
idx++;
}
while(string[idx] == seperator && idx < len) idx++;
return ret;
}
Reply
#2

Can someone help me. I`m getting sick of these errors and i still can`t figure this out.
Reply
#3

025 means you said the function is going to have x amount of variables and it has y.

021 means you've defined strtok more than once

047 means you're cramming something big into a smaller variable most likely.

we can't actually help you further than this unless you pasted the lines in your code that have errors
Reply
#4

So what program or something do i use to upload the lines so you can see them?
Reply
#5

well its only a few lines you can use the [ code ] thing on the forums
Reply
#6

I just found out the problem. I had to delete the extra strtok lines and that cleared the rest of the problems. FINALLY!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)