ayuda con un error
#1

hola gente de samp forum xddd

tengo un problema con este codigo


public GuardarInfo(playerid)
{
if(IsPlayerConnected(playerid))
{
if(JugadorLogeado[playerid] == 1)
{
new str [250];
format(str, 128, "/eXtremeROL/conocidos/%s.ini", PlayerNameNormal(playerid));
new File:femail = fopen(str, io_append);
new str2[64];
format(str2, 64, "\r\nNombre: %s", PlayerNameNormal(playerid));
fwrite(femail, str2);
fclose(femail);

format(str, 128, "/eXtremeROL/conocidos/%s.ini", PlayerNameNormal(playerid));
new File:femail2 = fopen(str, io_append);
format(str2, 64, "\r\nDinero: %d", PlayerInfo[playerid][dinero]);
fwrite(femail2, str2);
fclose(femail2);
return 1;
}
}

esta es la liсa del error
if(JugadorLogeado[playerid] == 1)

el error que me tira
error 030: compound statement not closed at the end of file (started at line 22211)

ayudaaaaaaaaaaaaaaaaaaaaaaaaaaa
Reply
#2

Te faltaba un corchete si no me equivoco, intenta con el siguiente cуdigo.

pawn Код:
public GuardarInfo(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(JugadorLogeado[playerid] == 1)
        {
            new str[250];
            format(str, 128, "/eXtremeROL/conocidos/%s.ini", PlayerNameNormal(playerid));
            new File:femail = fopen(str, io_append);
            new str2[64];
            format(str2, 64, "\r\nNombre: %s", PlayerNameNormal(playerid));
            fwrite(femail, str2);
            fclose(femail);

            format(str, 128, "/eXtremeROL/conocidos/%s.ini", PlayerNameNormal(playerid));
            new File:femail2 = fopen(str, io_append);
            format(str2, 64, "\r\nDinero: %d", PlayerInfo[playerid][dinero]);
            fwrite(femail2, str2);
            fclose(femail2);
            return 1;
        }
    }
}
Reply
#3

u me funcino gracias +rep
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)