Warning Help: warning 203 - 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: Warning Help: warning 203 (
/showthread.php?tid=228900)
Warning Help: warning 203 -
Dennis_Smith - 20.02.2011
I keep getting a warning when I try to compile. I got this for two different things.
Код:
warning 203: symbol is never used: "SetPlayerTeamFromClass"
warning 203: symbol is never used: "SetPlayerToTeamColor"
I followed everything in this tutorial
https://sampwiki.blast.hk/wiki/PAWN_tutorial_1 and it never said anything about adding an include. Should I? I have tried looking through several forums and none of them related specifically to the warning I am having troubles with.
PS: I used the blank script so there is no other functions in it except for the ones from the tutorial.
Thanks for any help.
Re: Warning Help: warning 203 -
MP2 - 20.02.2011
Remove those functions then. They are never used to why have them?
Re: Warning Help: warning 203 -
Dennis_Smith - 20.02.2011
Quote:
Originally Posted by MP2
Remove those functions then. They are never used to why have them?
|
Won't that take out the teams from it?
Re: Warning Help: warning 203 -
MP2 - 20.02.2011
Well it's never being used, so it shouldn't affect anything.
Re: Warning Help: warning 203 -
Dennis_Smith - 20.02.2011
Quote:
Originally Posted by MP2
Well it's never being used, so it shouldn't affect anything.
|
It just gives me more errors:
Код:
C:\Users\Dennis\Desktop\samp under construction\gamemodes\Dennis's Script.pwn(46) : error 055: start of function body without function header
C:\Users\Dennis\Desktop\samp under construction\gamemodes\Dennis's Script.pwn(47) : error 010: invalid function or declaration
C:\Users\Dennis\Desktop\samp under construction\gamemodes\Dennis's Script.pwn(51) : error 010: invalid function or declaration
C:\Users\Dennis\Desktop\samp under construction\gamemodes\Dennis's Script.pwn(77) : error 055: start of function body without function header
C:\Users\Dennis\Desktop\samp under construction\gamemodes\Dennis's Script.pwn(78) : error 010: invalid function or declaration
C:\Users\Dennis\Desktop\samp under construction\gamemodes\Dennis's Script.pwn(82) : error 010: invalid function or declaration
C:\Users\Dennis\Desktop\samp under construction\gamemodes\Dennis's Script.pwn(87) : error 054: unmatched closing brace ("}")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
7 Errors.
Is there something I need to add or change?
Re: Warning Help: warning 203 -
iMonk3y - 20.02.2011
I suggest to remove brace on line 87...
Re: Warning Help: warning 203 -
Dennis_Smith - 20.02.2011
Quote:
Originally Posted by iMonk3y
I suggest to remove brace on line 87...
|
but what about the other 6 errors.
Re: Warning Help: warning 203 -
MadeMan - 20.02.2011
The tutorial tells you to put these functions under OnPlayerRequestClass and OnPlayerSpawn callbacks.
Re: Warning Help: warning 203 -
Dennis_Smith - 20.02.2011
Quote:
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,0);
return 1;
}
{
if (gTeam[playerid] == TEAM_GROVE)
{
SetPlayerColor(playerid, TEAM_GROVE_COLOR);
}
else if (gTeam[playerid] == TEAM_BALLA)
{
SetPlayerColor(playerid, TEAM_BALLA_COLOR);
}
}
|
How should I change this?
Re: Warning Help: warning 203 -
MadeMan - 20.02.2011
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,0);
SetPlayerToTeamColor(playerid);
return 1;
}
SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_GROVE)
{
SetPlayerColor(playerid, TEAM_GROVE_COLOR);
}
else if (gTeam[playerid] == TEAM_BALLA)
{
SetPlayerColor(playerid, TEAM_BALLA_COLOR);
}
}