[AYUDA] no entiendo :S -
GranaT3 - 28.03.2013
hola chicos tengo problema mбs bien un error que no entiendo
error 026: no matching "#if..." : Ya estй listo solucionado XD
error 017: undefined symbol "UbicacionArchivo"
error 017: undefined symbol "UbicacionArchivo"
error 017: undefined symbol "NombreJ"
error 017: undefined symbol "UbicacionArchivo
error 029: invalid expression, assumed zero
error 017: undefined symbol "NombreJ"
error 090: public functions may not return arrays (symbol "ProxDetector")
error 029: invalid expression, assumed zero
error 017: undefined symbol "UbicacionArchivo"
error 017: undefined symbol "NombreJ"
error 090: public functions may not return arrays (symbol "ProxDetector")
error 030: compound statement not closed at the end of file (started at line 367)
Aquн el error de la mayoria que dice "Ubicaciуn Archivo"
Код:
if (!fexist(UbicacionArchivo(playerid)))//chequeas si el archivo existe
{
ShowPlayerDialog(playerid, Registro, DIALOG_STYLE_INPUT, "Registro", "Coloque su contraseсa para crear su cuenta", "Registrar", "Cancelar");//el dialogo para un usuario nuevo
}
else
{
INI_ParseFile(UbicacionArchivo(playerid), "Cargar_%s", .bExtra = true, .extra = playerid);//almacena los datos del jugador en su respectivo array, segъn el archivo a checkear. (.Extra: destino del array)
ShowPlayerDialog(playerid, Ingreso, DIALOG_STYLE_INPUT, "Ingreso", "Coloque su contraseсa para ingresar", "Conectar", "Cancelar");//el dialogo, de cuando ya estas registrado
}
Aquн el error del "ProxDetector"
Код:
new string[128];//los maximos caracteres , tamaсo del array, permitidos de cuando hablas, en mi caso 128 porque es la mбxima entrada del chatbox
format(string, sizeof(string), "%s dice: %s",NombreJ(playerid), text);
ProxDetector(10.0, playerid, string,Hablar,Hablar2,Hablar3,Hablar4,Hablar5);
Aquн una linea quй me marca
Код:
new INI:Arch = INI_Open(UbicacionArchivo(playerid));
INI_SetTag(Arch,"data");
INI_WriteString(Arch,"Contraseсa",Informacion[playerid][Contra]);
INI_WriteBool(Arch,"Tutorial",Informacion[playerid][Tutorial]);
INI_WriteInt(Arch,"Dinero",GetPlayerMoney(playerid));
INI_WriteInt(Arch,"Nivel",GetPlayerScore(playerid));
INI_WriteInt(Arch,"Sexo",Informacion[playerid][Sexo]);
INI_WriteInt(Arch,"Edad",Informacion[playerid][Edad]);
INI_Close(Arch); //guarda y actualiza el archivo ini
Otro
Код:
//Este stock retorna el nombre de un jugador.
stock NombreJ(playerid)
{
return Nombre[playerid];
}
:S son muchos ayudenme de solucionar algunos chicos se los pido con todo el corazуn de mi vida
PD: Yo tengos todos los includes y Forwards -_-
Respuesta: [AYUDA] no entiendo :S -
TheChaoz - 28.03.2013
No tienes definida la funcion "UbicacionArchivo".
Cambia
pawn Код:
//Este stock retorna el nombre de un jugador.
stock NombreJ(playerid)
{
return Nombre[playerid];
}
por
pawn Код:
#define NombreJ(%0) \
Nombre[(%0)]
їComo tienes definido 'ProxDetector'?
Respuesta: [AYUDA] no entiendo :S -
GranaT3 - 28.03.2013
Bendito seas tъ
me respondiste , se me quito algunos errores pero todavнa tengo errores, їComo defino el "UbicaciуnArchivo"?
y el proxdetector me imagino que estй de abajo
Код:
public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
{
if(IsPlayerConnected(playerid))
{
new Float:posx, Float:posy, Float:posz;
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
foreach(Player,i)//cambiamos el loop a foreach :D
{
if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
{
if(!BigEar[i])
{
GetPlayerPos(i, posx, posy, posz);
tempposx = (oldposx -posx);
tempposy = (oldposy -posy);
tempposz = (oldposz -posz);
if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
{
SendClientMessage(i, col1, string);
}
else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
{
SendClientMessage(i, col2, string);
}
else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
{
SendClientMessage(i, col3, string);
}
else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
{
SendClientMessage(i, col4, string);
}
else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
SendClientMessage(i, col5, string);
}
}
else
{
SendClientMessage(i, col1, string);
}
}
}
}
Код:
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);//proxdetector, es para que solo usuarios cercanos lean algo...
C:\Users\hackers\Desktop\mi\0.3x\gamemodes\My_Life RP.pwn(97) : error 017: undefined symbol "UbicacionArchivo"
C:\Users\hackers\Desktop\mi\0.3x\gamemodes\My_Life RP.pwn(103) : error 017: undefined symbol "UbicacionArchivo"
C:\Users\hackers\Desktop\mi\0.3x\gamemodes\My_Life RP.pwn(336) : error 017: undefined symbol "UbicacionArchivo"
C:\Users\hackers\Desktop\mi\0.3x\gamemodes\My_Life RP.pwn(417) : error 029: invalid expression, assumed zero
C:\Users\hackers\Desktop\mi\0.3x\gamemodes\My_Life RP.pwn(417) : error 017: undefined symbol "UbicacionArchivo"
C:\Users\hackers\Desktop\mi\0.3x\gamemodes\My_Life RP.pwn(421) : error 090: public functions may not return arrays (symbol "ProxDetector")
C:\Users\hackers\Desktop\mi\0.3x\gamemodes\My_Life RP.pwn(423) : error 030: compound statement not closed at the end of file (started at line 369)
Respuesta: [AYUDA] no entiendo :S -
TheChaoz - 28.03.2013
La funcion esta incompleta (le falta el final a la que me pasaste).