SA-MP Forums Archive
Problem with FS House System - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with FS House System (/showthread.php?tid=507505)



Problem with FS House System - Galletziz - 17.04.2014

Hi boyz, i have this problem:

PHP код:
CMD:chouse(playerid,params[])
{
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"[SERVER] You aren't an admin!");
    new 
prezzocasaid contocase;
    if(
sscanf(params,"i"prezzocasa)) return SendClientMessage(playerid,-1,"[SERVER]USAGE: /createhouse [price]");
    new 
Float:xFloat:yFloat: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;

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


Re: Problem with FS House System - MrCallum - 17.04.2014

Are you MYSQL? or Non MYSQL user on the rest of your FS?


Re: Problem with FS House System - Galletziz - 17.04.2014

Sorry, solved, the problem was in declarations Filterscripts in server.cfg file.