29.10.2013, 22:47
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"
{
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"