South West RP Help ?
#1

Код:
C:\Users\Matthew Toope\Desktop\samp03asvr_R4_win32 - Copy\gamemodes\SWRP.pwn(4181) : warning 203: symbol is never used: "idx"
C:\Users\Matthew Toope\Desktop\samp03asvr_R4_win32 - Copy\gamemodes\SWRP.pwn(4180) : warning 204: symbol is assigned a value that is never used: "tmp"
C:\Users\Matthew Toope\Desktop\samp03asvr_R4_win32 - Copy\gamemodes\SWRP.pwn(17784) : error 025: function heading differs from prototype
C:\Users\Matthew Toope\Desktop\samp03asvr_R4_win32 - Copy\gamemodes\SWRP.pwn(17785) : error 021: symbol already defined: "strtok"
C:\Users\Matthew Toope\Desktop\samp03asvr_R4_win32 - Copy\gamemodes\SWRP.pwn(17796) : warning 209: function "strtok" should return a value
C:\Users\Matthew Toope\Desktop\samp03asvr_R4_win32 - Copy\gamemodes\SWRP.pwn(22384) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
I dont care about warnings its the errors i dont know what to do i got ride for 11 of 13 errors but these 2 i cant figure out
Reply
#2

Ask it in the South West RP topic.
Reply
#3

Quote:
Originally Posted by LowCo.
Ask it in the South West RP topic.
i did but if i post it here it will be easyer to see so yeah
Reply
#4

show lines
Reply
#5

Код:
strtok(string[],&idx,seperator = ' ')
{
	new ret[128], 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;
}
17783 - 17796
Reply
#6

Quote:
Originally Posted by matthew32112
Код:
strtok(string[],&idx,seperator = ' ')
{
	new ret[128], 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;
}
17783 - 17796
Delete it, you probably already have it in one of your includes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)