Help me with some warnings.
#1

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)
Reply
#2

Remove playerid and show the line of new errors.
Reply
#3

Quote:
Originally Posted by ATGOggy
Посмотреть сообщение
Remove playerid and show the line of new errors.
Код:
playermdisconnect(playerid, discmcc);
Reply
#4

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
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)