22.04.2017, 20:13
Hello, im using ZeroHouse system but after i did /chouse 500000 3 given me like this
Use: /chouse price intid and im already type the Price + Int id so wat's wrong here.
EDITED: Here the #defines
Use: /chouse price intid and im already type the Price + Int id so wat's wrong here.
PHP код:
new Index;
CMD:chouse(playerid, params[])
{
new tmp[256];
tmp = strtok(params,Index);
new tmp2[256];
tmp2 = strtok(params,Index);
if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid,-1,"Use: /chouse [price] [intid]");
new id = strval(tmp2);
new Price = strval(tmp);
if(Price <= 0)
return SendClientMessage(playerid,-1,"Invalid house price. The house price must be between $"#MIN_HOUSE_PRICE" and $"#MAX_HOUSE_PRICE"");
CreateHouse(playerid,GetFreeHouseID(),Price,id);
SendClientMessage(playerid,-1,"House Created");
return 1;
}
Код HTML:
#define MAX_HOUSES 10000 #define MAX_INTERIORS 10 #define MAX_DIST 10 #define MAX_HOUSE_OWNED 2 #define MIN_HOUSE_PRICE 500000 #define MAX_HOUSE_PRICE 50000000