[ERROR]No me funciona esta funcion
#1

Lo unico que quiero es que me envie un mensage con el contenido del .ini
He intentado asi:

pawn Код:
YCMD:hola(playerid, params[], help)
{
    if(!sscanf(params, "i", params[0]))
    {
        new stringg[128];
        format(stringg, sizeof(stringg), Telefonos_File, params[0]);
        INI:stringg[128](name[], value[])
        {
            INI_String("Propietario", TelefonoInfo, sizeof(TelefonoInfo));
            return 0;
        }
        INI_Load(stringg);
        new string2[128];
        format(string2, sizeof(string2), "%s", TelefonoInfo[playerid]);
        SendClientMessage(playerid, -1, string2);
    }
    return 1;
}
No funciona me saltan errores y no encuentro manera de solucionarlo

Код:
D:\Samp\Servidor de 0\gamemodes\Andreasfield3.9.8.2.pwn(1077) : error 029: invalid expression, assumed zero
D:\Samp\Servidor de 0\gamemodes\Andreasfield3.9.8.2.pwn(1077) : error 017: undefined symbol "@INI_stringg_128"
D:\Samp\Servidor de 0\gamemodes\Andreasfield3.9.8.2.pwn(1077) : error 017: undefined symbol "@INI_stringg_128"
D:\Samp\Servidor de 0\gamemodes\Andreasfield3.9.8.2.pwn(1077) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

Con
pawn Код:
INI:stringg[128](name[], value[])
їque es lo que quieres hacer?
Reply
#3

Quote:
Originally Posted by [J]ulian
Посмотреть сообщение
Con
pawn Код:
INI:stringg[128](name[], value[])
їque es lo que quieres hacer?
Tomar el nombre del usuario que guarde dentro del .ini
Reply
#4

Te invito a leer esta guia.

forum.sa-mp.com/showthread.php?t=244223

Serнa muy complicado explicarte como funciona.

Se pondrнa esto fuera de la funcion que usas
INIropiedades[casas](name[]͵ value[])

en el archivo aparecerнa:

[casas]
Propietario= Stront

Tendrнas que utilizar para tomar el valor Stront esto en la funciуn.

INIropiedades[casas](name[]͵ value[])
{
INI_String("Propietario", Propietario, sizeof(Propietario));
}

y en la funcion usas:

INI_Load("propiedades.INI");
Reply
#5

Reciйn salida del horno: https://sampforum.blast.hk/showthread.php?tid=535991
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)