Pickup and Labels aren't appearing correctly.
#1

So I'm working on a script, and well, it's working fine apart from the /createhouse command.
The label appears and then disappears, and the pickup just doesn't get created.
Help?

Код:
CMD:createhouse(playerid, params[])
{
	new Float:X, Float:Y, Float:Z, string[256], hid;
	if(SavedInfo[playerid][AdminLevel] < 4) SendClientMessage(playerid, COLOR_GREY, "You do not have permission to use this command.");
	else if(sscanf(params, "d", hid))
	{
	    SendClientMessage(playerid, COLOR_GREY, "USAGE: /createhouse [house id]");
	    SendClientMessage(playerid, COLOR_GREY, "Use /hnext to find the next unused house ID.");
	}
	else
	{
 		format(string, sizeof string, "Houses/House_%d.ini", hid);
 		if(!fexist(string))
 		{
			GetPlayerPos(playerid, X, Y, Z);
			Houses[hid][ExtX] = X;
			Houses[hid][ExtY] = Y;
			Houses[hid][ExtZ] = Z;
			format(string, sizeof string, "House ID: %d\nOwner: The State\nFor Sale!", hid);
            Create3DTextLabel(string, COLOR_YELLOW, Houses[hid][ExtX], Houses[hid][ExtY], Houses[hid][ExtZ], 20, 0, 0);
            Houses[hid][Pickup] = CreateDynamicPickup(1273, 23, Houses[hid][ExtX], Houses[hid][ExtY], Houses[hid][ExtZ], 0, -1, -1, 150.0);
 		}
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)