Salut, am pus comanda acoveroff de pe alt gamemode pe gamemode-ul meu si primesc anumite erori si nu stiu de unde sunt, help.
Comanda:
CMD:acoveroff(playerid, params[], help) {
if(PlayerInfo[playerid][pAdmin] < 5) return 1;
if(GetPVarInt(playerid, "Cover") == 0) return SendClientMessage(playerid, -1, "Nu esti sub acoperire!");
SetPVarInt(playerid, "Cover", 0);
new clanid = PlayerInfo[playerid][pClan];
new string[180];
SendClientMessage(playerid, -1, "Nu mai esti sub acoperire!");
if(PlayerInfo[playerid][pClan] != 0 && PlayerInfo[playerid][pTag] == 0) {
format(string, sizeof(string), "%s%s", ClanInfo[clanid][clTag], PlayerInfo[playerid][pUsername]);
SetPlayerName(playerid, string);
}
else if(PlayerInfo[playerid][pClan] != 0 && PlayerInfo[playerid][pTag] == 1) {
format(string, sizeof(string), "%s%s", PlayerInfo[playerid][pUsername], ClanInfo[clanid][clTag]);
SetPlayerName(playerid, string);
}
else SetPlayerName(playerid, PlayerInfo[playerid][pUsername]);
SetPlayerToTeamColor(playerid);
SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
if(PlayerInfo[playerid][pChar] > 0)
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
}
else
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
}
return 1;
}
Erorile:
gamemode.pwn(21757) : error 017: undefined symbol "pTag"
gamemode.pwn(21758) : error 017: undefined symbol "clTag"
gamemode.pwn(21761) : error 017: undefined symbol "pTag"
gamemode.pwn(21762) : error 017: undefined symbol "pUsername"
gamemode.pwn(21765) : error 017: undefined symbol "pUsername"
gamemode.pwn(21768) : error 017: undefined symbol "pChar"
gamemode.pwn(21770) : error 017: undefined symbol "pChar"
Help