Quote:
Originally Posted by park4bmx
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.
|
Its' quite weired. Firstly, why there is pvarstring when the blocks load on game mode init?