SA-MP Forums Archive
[ERROR]No me funciona esta funcion - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [ERROR]No me funciona esta funcion (/showthread.php?tid=535889)



[ERROR]No me funciona esta funcion - chusothe41 - 06.09.2014

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.



Respuesta: [ERROR]No me funciona esta funcion - [J]ulian - 06.09.2014

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


Respuesta: [ERROR]No me funciona esta funcion - chusothe41 - 06.09.2014

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


Respuesta: [ERROR]No me funciona esta funcion - Stront - 06.09.2014

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");


Respuesta: [ERROR]No me funciona esta funcion - Glimma - 06.09.2014

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