house bug,
#1

Hello there.
I've got a GM but I got house bug.
when im typing /hnext it says Available ID 0
when im create the house ID and then type /hnext it still says Available ID 0.

another thing,
when someone trying to buy the house it says "you already own a house"
what do I need to do?

plugins mysql.dll streamer.dll Whirlpool.dll sscanf.dll nativechecker.dll

Quote:

CMD:hnext(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
{
SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
return 1;
}
SendClientMessage(playerid, COLOR_RED, "* Listing next available house...");
for(new x;x<MAX_HOUSES;x++)
{
if(HouseInfo[x][hOwned] == 0)
{
new string[128];
format(string, sizeof(string), "%d is available to use.", x);
SendClientMessage(playerid, COLOR_WHITE, string);
break;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "You're not authorized to use that command!");
return 1;
}
return 1;
}

thanks for your help.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)