14.06.2013, 21:15
Me voy al grano, ERRORES:
Lineas:
La funcion RSW_Get es igual a la de Dini_Get, solo que esta es por string y no por archivo.
la dejo de todas formas:
PD: la funcion RSW_StripNewLine es igual a la de dini_StripNewLine.
-- Quiziera saber como solucionar los errores, Gracias :P --
Код:
filterscripts\RealWeather.pwn(67) : error 006: must be assigned to an array filterscripts\RealWeather.pwn(68) : error 006: must be assigned to an array 2 Errors.
pawn Код:
// variables globales
new RSW_Weather[1];
new RSW_Time[1];
//---------
Linea: 67 RSW_Weather[0] = RSW_Get(data,"Weather");
Linea: 68 RSW_Time[0] = RSW_Get(data,"Time");
la dejo de todas formas:
pawn Код:
stock RSW_Get(string[],key[]) {
new tmpres[MAX_STRING];
new key_length = strlen(key);
if (key_length==0 || key_length+2>MAX_STRING) return tmpres;
while (strlen(string))
{
if (tmpres[key_length]=='='&& !strcmp(tmpres, key, true, key_length))
{
/* We've got what we need */
RSW_StripNewLine(tmpres);
strmid(tmpres, tmpres, key_length + 1, strlen(tmpres), MAX_STRING);
return tmpres;
}
}
return tmpres;
}
-- Quiziera saber como solucionar los errores, Gracias :P --