Warning 203
#1

Quote:

SetPlayerToTeamColor(playerid)
{
if(gTeam[playerid] == TEAM_TERRORISTS)
{
SetPlayerColor(playerid,TEAM_COLOR_TERRORISTS);
}
else if(gTeam[playerid] == TEAM_COUNTERTERRORISTS)
{
SetPlayerColor(playerid,TEAM_COLOR_COUNTERTERRORIS TS);
}
return 1;
}

It says
Quote:

warning 203: symbol is never used: "SetPlayerToTeamColor"

Please help
Reply
#2

Show us where you define SetPlayerToTeamColor
Reply
#3

I believe this occurs by two flaws.
1. You have created a stock function which you do not use.
2. You have created a variable which you do not use.


Note, if you create a variable and attach it to something, even though it looked like you used it, you didn't because you just defined what that variable is.
Reply
#4

Quote:
Originally Posted by ConnorHunter
Посмотреть сообщение
Show us where you define SetPlayerToTeamColor
I haven't and tell me how to define?
Reply
#5

You have already defined it;
pawn Код:
SetPlayerToTeamColor(playerid)
{
if(gTeam[playerid] == TEAM_TERRORISTS)
{
SetPlayerColor(playerid,TEAM_COLOR_TERRORISTS);
}
else if(gTeam[playerid] == TEAM_COUNTERTERRORISTS)
{
SetPlayerColor(playerid,TEAM_COLOR_COUNTERTERRORIS TS);
}
return 1;
}
Now go under OnPlayerSpawn(playerid) or anywhere, use it like this:

pawn Код:
SetPlayerToTeamColor(playerid);
You have defined it, but you did not use it, that's why PAWN has warned you.
Reply
#6

Now no warning or error but in running the server it says:

Quote:

[00:45:11] Script[gamemodes/RGTDM.amx]: Run time error 19: "File or function is not found

"

please help
Reply
#7

use nativechecker then post logs here
Reply
#8

Quote:
Originally Posted by Namer
Посмотреть сообщение
use nativechecker then post logs here
yeah I found the mistake I removed streamer from plugins lines in server.cfg and by the way thanks to all of u for helping me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)