SA-MP Forums Archive
Compilation warning - 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: Compilation warning (/showthread.php?tid=153713)



Compilation warning - Crasher33 - 10.06.2010

race.pwn(445) : warning 203: symbol is never used: "playerid"

Here is this line:

dcmd_settings(playerid, params[])


How I can fix it?



Re: Compilation warning - DJDhan - 10.06.2010

You have not used "playerid" anywhere in that command. Hence that warning.


Re: Compilation warning - Assyria - 10.06.2010

This just makes me thing what is in your dcmd_settings command...
Anyways, fix:
#pragma unused playerid


Re: Compilation warning - Crasher33 - 10.06.2010

Quote:
Originally Posted by Assyria
This just makes me thing what is in your dcmd_settings command...
Anyways, fix:
#pragma unused playerid
Thanks. It's helped me


Re: Compilation warning - Infinity - 10.06.2010

Quote:
Originally Posted by Assyria
This just makes me thing what is in your dcmd_settings command...
Anyways, fix:
#pragma unused playerid
#pragma is like, the WORST thing to do.
The warning isn't serious, and doesn't NEED a fix.
It just tells you that the function knows the variable "playerid", but that you haven't used it.


Re: Compilation warning - Assyria - 10.06.2010

Are you joking me?


Re: Compilation warning - Jakku - 10.06.2010

Quote:
Originally Posted by Assyria
This just makes me thing what is in your dcmd_settings command...
Anyways, fix:
#pragma unused playerid
It's not needed to fix that warning. It does not cause nothing. Just a notification you haven't used "playerid" anywhere in your function / command.

DO NOT USE #pragma unused playerid