05.02.2011, 21:24
This code does work! it does return the value as it should but pawno returns a warning saying this function should return a value... any id's?
pawn Код:
stock readownedprop(playerid)
{
new file[LENGTH];
for(new i = 0; i < MAX_HOUSES; i++)
{
format(file, sizeof(file), PATH, i);
if(dini_Exists(file))
{
if(!strcmp(dini_Get(file, "owner"), playerName(playerid), true))
{
return i;
}
}
}
}