Factions
#1

Hello!

I followed a guide to add Gang and Police faction.

When i add it and compile i get this:

Код:
C:\GTA Trucking Server\Test Script Server\gamemodes\khaos.pwn(216) : error 017: undefined symbol "SetPlayerToTeamColour"
C:\GTA Trucking Server\Test Script Server\gamemodes\khaos.pwn(445) : error 017: undefined symbol "SetPlayerTeamFromClass"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Script File: http://pastebin.com/xqbG1fCR
Reply
#2

You need to remove those functions, or create them.
Reply
#3

So have can i create them?
Reply
#4

These are not exsisting functions , you have to make them yourself or it will give you errors.

Can we see the tutorial you used?
Also

maybe these help:
https://sampforum.blast.hk/showthread.php?tid=253018
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
    if (classid == 1)
    {
        gTeam[playerid] = TEAM_POLICE;
    }
    if(classid == 2)
    {
        gTeam[playerid] = TEAM_MAFIA;
    }
}

SetPlayerToTeamColor(playerid)
{
    if (gTeam[playerid] == TEAM_POLICE)
    {
        SetPlayerColor(playerid, COLOR_AQUA);
    }
    else if (gTeam[playerid] == TEAM_MAFIA)
    {
        SetPlayerColor(playerid, COLOR_BROWN);
    }
}
I didn't make them, you can replace your colours with yours and change the teams to yours, as well.
and the classess.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)