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.
Originally Posted by LowCo.
Ask it in the South West RP topic.
|
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; }
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; } |