17.04.2014, 22:17
Hi boyz, i have this problem:
The DynamicCP don't create, but only create TextLabel..
why? i have follow FireCat FS.. i can't belive that it doesn't work..
Help plz
PHP код:
CMD:chouse(playerid,params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"[SERVER] You aren't an admin!");
new prezzocasa, id = contocase;
if(sscanf(params,"i", prezzocasa)) return SendClientMessage(playerid,-1,"[SERVER]USAGE: /createhouse [price]");
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
cinfo[id][prezzo] = prezzocasa;
cinfo[id][acquisita] = 0;
cinfo[id][posx] = x;
cinfo[id][posy] = y;
cinfo[id][posz] = z;
cinfo[id][virtualworld] = GetPlayerVirtualWorld(playerid);
format(cinfo[id][proprietario],24,"Nonusablenameforthishouse");
SendClientMessage(playerid,-1,"[SERVER] House Created");
casaentrata[id] = CreateDynamicCP(x,y,z,1.5,GetPlayerVirtualWorld(playerid));
casauscita[id] = CreateDynamicCP(443.9237,509.4609,1001.4195,1.5,GetPlayerVirtualWorld(playerid));
new file[40],labelstringa[100];
format(file,sizeof(file),"case/%i.ini",id);
INI_Open(file);
INI_WriteInt("Prezzo",prezzocasa);
INI_WriteInt("Acquisita",0);
INI_WriteInt("VW",GetPlayerVirtualWorld(playerid));
INI_WriteFloat("Posx",x);
INI_WriteFloat("Posy",y);
INI_WriteFloat("Posz",z);
INI_WriteString("Proprietario","Nonusablenameforthishouse");
INI_Save();
INI_Close();
format(labelstringa,sizeof(labelstringa),"Owned: No \nPrice: %i",prezzocasa);
cinfo[id][labelinfo] = Create3DTextLabel(labelstringa,0xFF0000FF,x,y,z,25.0,GetPlayerVirtualWorld(playerid));
contocase++;
return 1;
}
why? i have follow FireCat FS.. i can't belive that it doesn't work..
Help plz