SA-MP Forums Archive
South West RP Help ? - 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: South West RP Help ? (/showthread.php?tid=140568)



South West RP Help ? - matthew32112 - 09.04.2010

Код:
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


Re: South West RP Help ? - Rzzr - 09.04.2010

Ask it in the South West RP topic.


Re: South West RP Help ? - matthew32112 - 09.04.2010

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


Re: South West RP Help ? - whitedragon - 09.04.2010

show lines


Re: South West RP Help ? - matthew32112 - 10.04.2010

Код:
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


Re: South West RP Help ? - [HiC]TheKiller - 10.04.2010

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.