Compilation warning
#1

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

Here is this line:

dcmd_settings(playerid, params[])


How I can fix it?
Reply
#2

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

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

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

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.
Reply
#6

Are you joking me?
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)