[Ajuda] Warnings - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Warnings (
/showthread.php?tid=507317)
Warnings -
Devasting - 17.04.2014
pawn Код:
C:\Users\Re\Desktop\samp03z_svr_R1_win32\filterscripts\fsadmin.pwn(4976) : warning 202: number of arguments does not match definition
C:\Users\Re\Desktop\samp03z_svr_R1_win32\filterscripts\fsadmin.pwn(4985) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
linha(4976):
pawn Код:
tmp = strtok(cmdtext, idx, strlen(cmdtext));
linha(4985):
pawn Код:
tmp = strtok(cmdtext, idx, strlen(cmdtext));
pawn Код:
strtok(const stringstrtok[], &index)
{
new length = strlen(stringstrtok);
while ((index < length) && (stringstrtok[index] <= ' ')) { index++; }
new offset = index, result[20];
while ((index < length) && (stringstrtok[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = stringstrtok[index];
index++;
}
result[index - offset] = EOS;
return result;
}
Re: Warnings -
CrazyHelp - 17.04.2014
ja coloco ?
Re: Warnings -
CrazyHelp - 17.04.2014
Ta aki
pawn Код:
tmp = strtok(cmdtext, idx);
mude os dois pra esse
Re: Warnings -
lKoDlFuLLaNNo - 17.04.2014
Quote:
Originally Posted by Devasting
pawn Код:
C:\Users\Re\Desktop\samp03z_svr_R1_win32\filterscripts\fsadmin.pwn(4976) : warning 202: number of arguments does not match definition C:\Users\Re\Desktop\samp03z_svr_R1_win32\filterscripts\fsadmin.pwn(4985) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
linha(4976):
pawn Код:
tmp = strtok(cmdtext, idx, strlen(cmdtext));
linha(4985):
pawn Код:
tmp = strtok(cmdtext, idx, strlen(cmdtext));
pawn Код:
strtok(const stringstrtok[], &index) { new length = strlen(stringstrtok); while ((index < length) && (stringstrtok[index] <= ' ')) { index++; }
new offset = index, result[20]; while ((index < length) && (stringstrtok[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = stringstrtok[index]; index++; } result[index - offset] = EOS; return result; }
|
Usa esse site pra tira Warnings
PHP код:
http://tabulador.medianewsonline.com/
Claro nao vai resolver todos no seu caso ai falto defini .- mas o site ajuda se o warning so estiver na linha.