[Ajuda] Erro ao compilar
#1

Erro: error 035: argument type mismatch (argument 3)

Code:
PHP код:
format(strContasizeof(strConta), "Clas/%s.ini"Nome(playerid)); //aq
if(DOF2_FileExists(strConta))
{
    
NomeClan[playerid] = Create3DTextLabel(DOF2_GetInt(strConta"cla" ,0x008080FF,0.0,0.0,0.0,0.0,0));
    
Attach3DTextLabelToPlayer(NomeClan[playerid], playerid0.0 0.0 0.7 );
    return 
1;

Reply
#2

Manda o code completo
Reply
#3

PHP код:
new Text3D:NomeClan[MAX_PLAYERS];
new 
strConta[20];

OBSExiste a pasta clгsdentro dela hб um arquivo com o nick do player e dentro ficaClг="Nome Clг".. 
Reply
#4

pawn Код:
format(strConta, sizeof(strConta), "Clas/%s.ini", Nome(playerid)); //aq
if(DOF2_FileExists(strConta))
{
    NomeClan[playerid] = Create3DTextLabel(DOF2_GetInt(strConta, "cla"),0x008080FF,0.0,0.0,0.0,0.0,0);
    Attach3DTextLabelToPlayer(NomeClan[playerid], playerid, 0.0 , 0.0 , 0.7 );
    return 1;
}
Reply
#5

Sou amigo do jonas... testei o cod do pt e n deu mesmo assim .....
Reply
#6

Deu nгo =//
Reply
#7

errei..

pawn Код:
format(strConta, sizeof(strConta), "Clas/%s.ini", Nome(playerid)); //aq
if(DOF2_FileExists(strConta))
{
    new PT[50];
    format(PT, sizeof(PT), "%d", DOF2_GetInt(strConta, "cla"));
    NomeClan[playerid] = Create3DTextLabel(PT, 0x008080FF,0.0,0.0,0.0,0.0,0);
    Attach3DTextLabelToPlayer(NomeClan[playerid], playerid, 0.0 , 0.0 , 0.7 );
    return 1;
}

so contas fake ai hein.
Reply
#8

Ou assim:
pawn Код:
format(strConta, sizeof(strConta), "Clas/%s.ini", Nome(playerid)); //aq
if(DOF2_FileExists(strConta))
{
    NomeClan[playerid] = Create3DTextLabel(DOF2_GetString(strConta, "cla"),0x008080FF,0.0,0.0,0.0,0.0,0);
    Attach3DTextLabelToPlayer(NomeClan[playerid], playerid, 0.0 , 0.0 , 0.7 );
    return 1;
}
Reply
#9

Af n ta aparecendo o label ''-'-'--'-' e agr ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)