28.11.2015, 15:13
I have added this command in my gamemode, and i have 26 errors ?
Код:
CMD:chouse(playerid, params[], help) { #pragma unused help if(!IsPlayerAdmin(playerid)) return SCM(playerid, COLOR_RED, "You must be RCON admin"); new Float:Pos[3],string[64],id,name[48],price,level; if(sscanf(params, "is[48]ii",id,name,price,level)) return SCM(playerid, COLOR_RED, "Usage:"COL_WHITE" /chouse [ID] [Name] [Price] [Level]"); if(id >= MAX_HOUSE) return SCM(playerid, COLOR_RED, "EROR: "COL_WHITE"Try again. You have typed the wrong house id."); format(string, sizeof(string), House_File, id); if(fexist(string)) return SCM(playerid, COLOR_RED, "House on that id already exists.!"); GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]); CreateSaveHouse(name,id,price,level,id+1,Pos[0],Pos[1],Pos[2]); SCM(playerid, -1, ""COL_YELLOW"You have Created a house.."); return 1; }