30.05.2015, 13:00
Instead of looping through all the houses, wouldn't it be better having a limit per-player? By that, you wouldn't need to loop twice (in the OnDialogResponse callback too).
Anyway, strcmp returns 0 even if one or both strings are NULL so you have to check if they're not and add them to the dialog's info string.
Anyway, strcmp returns 0 even if one or both strings are NULL so you have to check if they're not and add them to the dialog's info string.
pawn Код:
if(!isnull(AHouseData[i][Owner]) && !strcmp(AHouseData[i][Owner], GetName(playerid)))