12.04.2015, 14:23
Nope, I don't.
Quote:
Do you mean that it only destroys the first 3D label and not the rest? If so, post the code you create those 3D labels.
|
pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid, Float:pX, Float:pY, Float:pZ);
CreateLabel(""COL_RED"["COL_WHITE"Weapon Shell"COL_RED"]", pX, pY, pZ, GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid), GetUsername(playerid));
return 1;
}
pawn Код:
CreateLabel(LName[60], Float:LX, Float:LY, Float:LZ, LInt, LVW, LOwner[24])
{
format(GlobalQuery, sizeof(GlobalQuery), "INSERT INTO `labels` (LabelName, LabelX, LabelY, LabelZ, LabelInt, LabelVW, LabelOwner) VALUES ('%s', %f, %f, %f, %d, %d, '%s')", LName, Float:LX, Float:LY, Float:LZ, LInt, LVW, LOwner);
mysql_function_query(MySQLConnection, GlobalQuery, true, "LabelCreated", "");
return true;
}