Help me with some warnings. - 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)
+--- Thread: Help me with some warnings. (
/showthread.php?tid=565942)
Help me with some warnings. -
TiXz0r - 02.03.2015
Im update sscanf2, before no warnings,but now have 1 warning for sscanf.ini
Код:
warning 235: public function lacks forward declaration (symbol "OnNPCModeInit")
Код:
warning 203: symbol is never used: "playerid"
Код:
stock playermdisconnect(playerid, discmcc[])
{
new File:lFile = fopen("/SERVER/Logs/Player/disconnect.txt", io_append), logData[178];
format(logData, sizeof(logData),"%s \r\n", discmcc);
fwrite(lFile, logData);
fclose(lFile);
return 1;
}
when remove playerid, i got error:
Код:
error 035: argument type mismatch (argument 1)
Re: Help me with some warnings. -
ATGOggy - 02.03.2015
Remove playerid and show the line of new errors.
Re: Help me with some warnings. -
TiXz0r - 02.03.2015
Quote:
Originally Posted by ATGOggy
Remove playerid and show the line of new errors.
|
Код:
playermdisconnect(playerid, discmcc);
Re: Help me with some warnings. -
rickisme - 02.03.2015
cause playerid never used ?
pawn Код:
stock playermdisconnect(playerid, discmcc[])
{
#pragma unused playerid
new File:lFile = fopen("/SERVER/Logs/Player/disconnect.txt", io_append), logData[178];
format(logData, sizeof(logData),"%s \r\n", discmcc);
fwrite(lFile, logData);
fclose(lFile);
return 1;
}
Show me OnNPCModeInit function
Re: Help me with some warnings. -
TiXz0r - 02.03.2015
Quote:
Originally Posted by rickisme
cause playerid never used ?
pawn Код:
stock playermdisconnect(playerid, discmcc[]) { #pragma unused playerid new File:lFile = fopen("/SERVER/Logs/Player/disconnect.txt", io_append), logData[178];
format(logData, sizeof(logData),"%s \r\n", discmcc); fwrite(lFile, logData);
fclose(lFile); return 1; }
Show me OnNPCModeInit function
|
i fixed all problems for warnings, only for OnNPCModeInit,
i dont have OnNPCModeInit function. i dont use in, i got this warning when updated sscanf2