Hallo Brotfische,
Wie oben schwer zu erkennen ist wird der Wert der Funktion GetPlayerCars & GetPlayerHouses falsch wiedergeeben.
Code:
C
stock GetPlayerHouses(playerid)
{
new count_houses;
for(new i;i<sizeof hInfo;i++)
{
if(hInfo[i][h_besitzer] == sInfo[playerid][username])
{
count_houses ++;
}
}
return PlayerHouses[playerid]=count_houses;
}
stock GetPlayerCars(playerid)
{
new count_cars;
for(new i;i<sizeof cInfo;i++)
{
if(cInfo[i][besitzer] == sInfo[playerid][db_id])
{
count_cars ++;
}
}
return PlayerCars[playerid]=count_cars;
}
Alles anzeigen
print ergiebt immer "0".