[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
INI

ropiedades[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.
INI

ropiedades[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