18.05.2012, 02:51
Quote:
YCMD:newhouse(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" /newhouse [ID] [Name] [Price] [Level]"); if(id >= MAX_HOUSE) return SCM(playerid, COLOR_RED, "EROR: "COL_WHITE"Try again. You are type wrong house id"); format(string, sizeof(string), House_File, id); if(fexist(string)) return SCM(playerid, COLOR_RED, "House on that id already exist!"); 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 are make house."); return 1; } |
Quote:
D:\GTASAN~1\GAMEMO~1\HSDM.pwn(13776) : warning 219: local variable "Pos" shadows a variable at a preceding level |