20.06.2012, 16:57
I have some textdraw`s from a command,when you type that command is teleporting me somewhere and the textdraws is set selectable but if i don`t move the mouse and stay for some seconds like this the textdraw`s is not any more selectable,like CancelSelectTextdraw..and this is not all the time,i have same problem when i click on a textdraw,,but that textdraw is doesn`t have CancelSelectTextDraw...
So i don`t have CancelSelectTextDraw..some ideas?
pawn Код:
CMD:test(playerid, params[])
{
#pragma unused params
new Float:x,Float:y,Float:z;
vehid = GetPlayerVehicleID(playerid);
GetVehiclePos(vehid,x,y,z);
SetVehiclePos(vehid,x,y,z);
RemovePlayerFromVehicle(playerid);
PlayerData[playerid][PosX] = x;
PlayerData[playerid][PosY] = y;
PlayerData[playerid][PosZ] = z;
FirstGame[playerid] = 1;
SetPlayerPos(playerid, -1949.5398,257.6834,41.0471);
SetPlayerCameraPos(playerid, -1950.6986,272.1758,41.0471);
SetPlayerCameraLookAt(playerid, -1947.0417,262.1667,41.0471);
//TogglePlayerControllable(playerid, 0);
TextDrawShowForPlayer(playerid, TextDraw[0]);
TextDrawShowForPlayer(playerid, TextDraw[1]);
TextDrawShowForPlayer(playerid, TextDraw[2]);
TextDrawShowForPlayer(playerid, TextDraw[3]);
TextDrawShowForPlayer(playerid, TextDraw[4]);
TextDrawShowForPlayer(playerid, TextDraw[5]);
TextDrawShowForPlayer(playerid, TextDraw[6]);
TextDrawShowForPlayer(playerid, TextDraw[7]);
TextDrawShowForPlayer(playerid, TextDraw[8]);
TextDrawShowForPlayer(playerid, TextDraw[9]);
TextDrawShowForPlayer(playerid, TextDraw[10]);
TextDrawShowForPlayer(playerid, TextDraw[11]);
TextDrawShowForPlayer(playerid, TextDraw[12]);
TextDrawShowForPlayer(playerid, TextDraw[13]);
TextDrawShowForPlayer(playerid, TextDraw[14]);
TextDrawShowForPlayer(playerid, TextDraw[15]);
TextDrawShowForPlayer(playerid, TextDraw[16]);
TextDrawShowForPlayer(playerid, TextDraw[17]);
TextDrawShowForPlayer(playerid, TextDraw[18]);
TextDrawShowForPlayer(playerid, TextDraw[19]);
TextDrawShowForPlayer(playerid, TextDraw[20]);
TextDrawShowForPlayer(playerid, TextDraw[21]);
SelectTextDraw(playerid, 0xFF4040AA);
return 1;
}