15.05.2011, 17:49
So, I am learning scripting and I started by trying to make a TDM server. I did everything it told me here: https://sampwiki.blast.hk/wiki/PAWN_tutorial_1 (only did what it says bellow the "Making a Team Deathmath"). Anyways, so I did exactly the same as it said there and when I'm going to compile this message appears:
Desktop\PAWN Scripting\gamemodes\Untitled.pwn(95) : error 017: undefined symbol "classid"
and this is what I have on line 95:
92public OnPlayerSpawn(playerid)
93{
94 SetPlayerToTeamColor(playerid);
95 if (classid == 0)
96 {
97 gTeam[playerid] = TEAM_GROVE;
98 }
can you help me fix the problem? I'm really interested in learning pawn even thought it seems a bit difficult
thanks for reading and for the help
Desktop\PAWN Scripting\gamemodes\Untitled.pwn(95) : error 017: undefined symbol "classid"
and this is what I have on line 95:
92public OnPlayerSpawn(playerid)
93{
94 SetPlayerToTeamColor(playerid);
95 if (classid == 0)
96 {
97 gTeam[playerid] = TEAM_GROVE;
98 }
can you help me fix the problem? I'm really interested in learning pawn even thought it seems a bit difficult
thanks for reading and for the help