21.04.2015, 21:12
PHP Code:
stock GetCasa(playerid)
{
new Cache:result, name[MAX_PLAYER_NAME];
if(Player[playerid][quantPropriedades] < 1) return -1;
GetPlayerName(playerid, name, sizeof(name));
for(new a = 0; a < Server[0][quantCasas]; a++)
{
printf("%s -> %s", Casa[a][dono], name);
if(!strcmp(Casa[a][dono], name)) return a;
}
return -1;
}
PHP Code:
Fel_486 -> Fel_486
-> Fel_486
-> Fel_486
-> Fel_486
Well, that's not normal...