30.01.2014, 11:49
Ok here's the story:
I was making houses at my RP server.
I made about 30+ houses around LS and then I wanted to see what's next House ID available but when I typed /hnext it still show'd 0 or 1
PS: Those houses aren't player owned yet.
I was making houses at my RP server.
I made about 30+ houses around LS and then I wanted to see what's next House ID available but when I typed /hnext it still show'd 0 or 1
PS: Those houses aren't player owned yet.
pawn Код:
CMD:hnext(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pShopTech] == 1)
{
SendClientMessageEx(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);
SendClientMessageEx(playerid, COLOR_WHITE, string);
break;
}
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD2, "You are not authorized to use that command!");
return 1;
}
return 1;
}