Quote:
Originally Posted by TopShooter2
Should be like this
PHP код:
CMD:chouse(playerid, params[])
{
new Price[128];
new ID[128];
if(sscanf(params,"ii",Price,ID)) return SendClientMessage(playerid,-1,"Use: /chouse [price] [intid]");
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;
}
|
and i got this
Код:
D:\data aji\Samp server\gamemodes\Adjie.pwn(451) : error 033: array must be indexed (variable "Price")
D:\data aji\Samp server\gamemodes\Adjie.pwn(452) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.