13.09.2015, 02:45
ї Quй estб tratando de hacer realmente ?
Aparentemente en su cуdigo parece que estб intentanto cargar 600 valores(0 - 599), por lo tanto deberб tener una variable como esta: 'PlayerInfo[MAX_PLAYERS][600]' o mayor.
No hace falta la segunda condiciуn, es la misma que contiene el loop. Creo que serнa mejor sн trata de explicar que es lo que estб intentando hacer
Eg:
Aparentemente en su cуdigo parece que estб intentanto cargar 600 valores(0 - 599), por lo tanto deberб tener una variable como esta: 'PlayerInfo[MAX_PLAYERS][600]' o mayor.
No hace falta la segunda condiciуn, es la misma que contiene el loop. Creo que serнa mejor sн trata de explicar que es lo que estб intentando hacer
Eg:
PHP код:
#include <a_samp>
#include <YSI\y_ini>
#include <YSI\y_inline>
new PlayerInfo[MAX_PLAYERS][600];
public OnPlayerConnect(playerid)
{
inline load(string:name[], string:value[])
{
new string[11];
for(new i = 1; i <= 559; i++)
{
format(string, sizeof(string), "Objeto%i", i);
INI_Int(string, PlayerInfo[playerid][i]);
}
}
INI_ParseFile("filename.ini", "load");
return 1;
}