Small problem
#7

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.

pawn Код:
if(!isnull(AHouseData[i][Owner]) && !strcmp(AHouseData[i][Owner], GetName(playerid)))
Reply


Messages In This Thread
Small problem - by AlexBlack - 29.05.2015, 20:16
Re: Small problem - by PepsiCola23 - 29.05.2015, 21:22
Re: Small problem - by d3ll - 29.05.2015, 21:47
Re : Small problem - by AlexBlack - 29.05.2015, 22:17
Re : Small problem - by AlexBlack - 29.05.2015, 23:49
Re : Small problem - by AlexBlack - 30.05.2015, 12:40
Re: Small problem - by Konstantinos - 30.05.2015, 13:00
Re : Small problem - by AlexBlack - 30.05.2015, 14:18
Re: Small problem - by Konstantinos - 30.05.2015, 14:42
Re : Small problem - by AlexBlack - 30.05.2015, 14:51

Forum Jump:


Users browsing this thread: 1 Guest(s)