16.03.2013, 18:56
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!)
}