SA-MP Forums Archive
/delhouse delet a house problem :/ - 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: /delhouse delet a house problem :/ (/showthread.php?tid=445278)



/delhouse delet a house problem :/ - dash5487 - 20.06.2013

hello

Код:
	if(Command("/delhouse"))
	{
		if(IsPlayerAdmin(playerid))
		{
			
			new hID = GetHouseID(playerid);
		 	hID=strtok(cmdtext,idx);
			SellHouse(playerid,strval(hID));
 			return 1;
		}
	}
errors
Код HTML:
 error 006: must be assigned to an array
 error 035: argument type mismatch (argument 1)
 warning 204: symbol is assigned a value that is never used: "hID"



Re: /delhouse delet a house problem :/ - Pottus - 20.06.2013

pawn Код:
if(Command("/delhouse"))
    {
        if(IsPlayerAdmin(playerid)) SellHouse(playerid,GetHouseID(playerid));
        return 1;
    }



Re: /delhouse delet a house problem :/ - dash5487 - 20.06.2013

no , i want to put a number like
/delhouse 12
/delhouse id