y_ini
#4

pawn Код:
//VARIABLES
new PString[256][MAX_BLOCKS];

//LOADING
new idStr[3],Output[80];//Output will be updated for each id!
for(new ids=0; ids <MAX_BLOCKS; ids++)
     {
          format(idStr,sizeof idStr,ids);
          INI_ParseFile(idStr, "Blocks", false, true,ids,true,false);
          GetPVarString(ID, idStr, Output, sizeof Output);
     }
//CALLBACKS
forward Blocks(IDs, name[], value[]);
public Blocks(IDs, name[], value[])
{
new idStr[3];format(idStr,sizeof idStr,IDs);
if(!strcmp(name,idStr))  format(PString[IDs], sizeof PString ,value);//apply the loaded pos into a string(because the spaces are invalid formats!)
}
that will load it but i cant be asked to split the " ", use sscanf if u want.
Reply


Messages In This Thread
y_ini - by pasha97 - 16.03.2013, 16:04
Re: y_ini - by park4bmx - 16.03.2013, 16:31
Re: y_ini - by pasha97 - 16.03.2013, 16:33
Re: y_ini - by park4bmx - 16.03.2013, 18:56
Re: y_ini - by pasha97 - 17.03.2013, 05:43
Re: y_ini - by mastermax7777 - 17.03.2013, 06:02
Re: y_ini - by park4bmx - 17.03.2013, 07:48

Forum Jump:


Users browsing this thread: 1 Guest(s)