Warning Help: warning 203
#1

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

Remove those functions then. They are never used to why have them?
Reply
#3

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?
Reply
#4

Well it's never being used, so it shouldn't affect anything.
Reply
#5

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

I suggest to remove brace on line 87...
Reply
#7

Quote:
Originally Posted by iMonk3y
Посмотреть сообщение
I suggest to remove brace on line 87...
but what about the other 6 errors.
Reply
#8

The tutorial tells you to put these functions under OnPlayerRequestClass and OnPlayerSpawn callbacks.
Reply
#9

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?
Reply
#10

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);
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)