Help Errors- - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help Errors- (
/showthread.php?tid=134072)
Help Errors- -
Josh_Kerns - 15.03.2010
Hello everyone I am getting these errors and spent like a hour trying to figure out how to fix this. Here are the errors and what i have there.
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(4182) : error 017: undefined symbol "TMP"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(4180) : warning 204: symbol is assigned a value that is never used: "tmp"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(6474) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(6575) : error 017: undefined symbol "X_INFO"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(6764) : error 017: undefined symbol "X_INFO"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(6997) : error 017: undefined symbol "X_INFO"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(7154) : error 017: undefined symbol "X_INFO"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(7299) : error 017: undefined symbol "X_INFO"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(7591) : error 017: undefined symbol "X_INFO"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(7679) : error 017: undefined symbol "X_INFO"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(8139) : error 017: undefined symbol "X_INFO"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(17784) : error 025: function heading differs from prototype
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(17785) : error 021: symbol already defined: "strtok"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(17795) : error 017: undefined symbol "RET"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(17795) : error 079: inconsistent return types (array & non-array)
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(22384) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
14 Errors.
Here what i have in those lines.
Код:
Line(4182) TMP = strtok(text, idx);
Line(4180) new tmp[128];
Line(6474) x_info = strtok(cmdtext, idx);
Line(6575) X_INFO = strtok(cmdtext, idx);
Line(6764) X_INFO = strtok(cmdtext, idx);
Line(6997) X_INFO = strtok(cmdtext, idx);
Line(7154) PlayerInfo[playerid][pBaseball] = 1;
Line(7299) X_INFO = strtok(cmdtext, idx);
Line(7591) X_INFO = strtok(cmdtext, idx);
Line(7679) X_INFO = strtok(cmdtext, idx);
Line(8139) X_INFO = strtok(cmdtext, idx);
Line(17784) strtok(string[],&idx,seperator = ' ')
Line(17785) {
Line(17795) return RET;
Line(17795) return RET;
Line(22384) Don`t got that many lines. Ends at 22383 which is blank.
If you need to see the script just pm me if it will be easier and i`ll send it to you. Just please help me
Re: Help Errors- -
iLcke - 15.03.2010
add this to your script.
Код:
#define X_INFO
#define TMP
#define RET
and for strtok, you defined it twice, maybe.
Re: Help Errors- -
Josh_Kerns - 15.03.2010
Thats didn`t seem to work. I made a backup copy incase i messed it up. Is there a way you can take a look at the script then see what you can do to it? Thanks for the response also.
Also during compiling the orginal one i get these errors.
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(4184) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(6476) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(6577) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(6766) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(6999) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(7156) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(7301) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(7593) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(7681) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(8141) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(17786) : error 025: function heading differs from prototype
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(17787) : error 021: symbol already defined: "strtok"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(17797) : error 047: array sizes do not match, or destination array is too small
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\SWRP.pwn(22386) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
13 Errors.
Re: Help Errors- -
iLcke - 15.03.2010
from 14 errors to 13.
show the lines of the errors?
Re: Help Errors- -
Jeffry - 15.03.2010
Should fix the undefined symbols.
Re: Help Errors- -
Josh_Kerns - 15.03.2010
Ok fixed all the things before i seen this post but now i got 3 more errors that i can`t seem to fix. Any suggestions?
Код:
C:\Users\tony\Desktop\DeltaResponse Team RP Back files\SWRP.pwn(17785) : error 025: function heading differs from prototype
C:\Users\tony\Desktop\DeltaResponse Team RP Back files\SWRP.pwn(17786) : error 021: symbol already defined: "strtok"
C:\Users\tony\Desktop\DeltaResponse Team RP Back files\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.
Код:
The Script lines:
strtok (string[],&idx,seperator = ' ')
{
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;
}
public OnPlayerRequestSpawn(playerid)
{
if(PLogged[playerid] == 0)