[Ajuda] ' Undefined Symbol :D
#1

CMD:familiapawn(playerid,params[])
{
new Nome[21];
new Fala[21];
new Sistema[21][2];

GetPlayerName(playerid,Nome,sizeof(Nome));

format(Fala,sizeof(Fala),"%s",Nome);
split(Fala,Sistema,'_');

format(Fala,sizeof(Fala),"%s_Pawn",Sistema[0]);
SetPlayerName(playerid,Fala);
new Pawn[MAX_PLAYERS char];

if(IsClan(playerid,"_Pawn"))
{
Pawn{playerid} = 1;
}
}

// Fim do GM (By DracoBlue)

stock split(const strsrc[],strdest[][],delimiter)
{
new i,li,aNum,len;

while(i <= strlen(strsrc))
{
if(strsrc[i] == delimiter || i == strlen(strsrc))
{
len = strmid(strdest[aNum], strsrc, li, i, 12;
strdest[aNum][len] = 0;
li = i+1;
aNum++;
}
i++;
}
return 1;
}


ERRO : C:\Users\Junior\Documents\Servidor'\Servidor'\game modes\UltimateRoleplay.pwn(26) : error: 017: undefined symbol "IsClan"
Reply
#2

Poem o cуdigo entre [pawn] [/*pawn] (Sem *), charб.

Nгo existe a funзгo IsClan no seu GM.
Reply
#3

Coloque assim:
pawn Код:
//Comeзo do GM

new IsClan[21];

CMD:familiapawn(playerid,params[])
{
    new Nome[21];
    new Fala[21];
    new Sistema[21][2];

    GetPlayerName(playerid,Nome,sizeof(Nome));

    format(Fala,sizeof(Fala),"%s",Nome);
    split(Fala,Sistema,'_');

    format(Fala,sizeof(Fala),"%s_Pawn",Sistema[0]);
    SetPlayerName(playerid,Fala);
    new Pawn[MAX_PLAYERS char];

    if(IsClan(playerid,"_Pawn"))
    {
        Pawn{playerid} = 1;
    }
}

// Fim do GM

stock split(const strsrc[],strdest[][],delimiter)
{
    new i,li,aNum,len;

    while(i <= strlen(strsrc))
    {
        if(strsrc[i] == delimiter || i == strlen(strsrc))
        {
            len = strmid(strdest[aNum], strsrc, li, i, 12;
            strdest[aNum][len] = 0;
            li = i+1;
            aNum++;
        }
        i++;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)