12.01.2014, 15:29
how can i load data into a vector(from player enum) with y_ini
example(this doesn't work)
example(this doesn't work)
Code:
public loaduser_PROPERTY(playerid ,name[] ,value[]) { new str[17] ,tmpValue; for(new i=0; i < MAX_SOMETHING ;++i) { format(str ,sizeof(str) ,"<%i>_Something" ,i); INI_Int(str ,tmpValue); if(tmpValue == 0) continue; vector_push_back(pInfo[playerid][something] ,tmpValue); } return 1; }