Textdraws :( - 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: Textdraws :( (
/showthread.php?tid=340674)
Textdraws :( -
Ryan_Obeles - 08.05.2012
guys i dont know why but loook at this image
/imageshack/img88/5426/samp010rp.png
the mouse does not pop up and i cant click it can anyone help me??
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if (clickedid != Text:Next)
{
switch(clickedid) // This is far more efficient than using an if-elseif-else structure
{
case 0: // Listitems start with 0, not 1
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1283.8524,-1385.5304,-10.0);
SetPlayerCameraPos(playerid,1283.8524,-1385.5304,25.8896);
SetPlayerCameraLookAt(playerid,1295.6960,-1422.5111,14.9596);
SendClientMessage(playerid, COLOR_YELLOW,"When you are bored u can play at the paintball arena");
SendClientMessage(playerid, COLOR_YELLOW,"Invite friends so u will have fun in the paintball with your friends");
return 1;
}
case 1:
{
CancelSelectTextDraw(playerid);
return 1;
}
case 2:
{
return 1;
}
}
}
return 1;
}
if thats not the format pls kalcor if this is a bug pls fix it cause i need it for my next forum release
Re: Textdraws :( -
Jonny5 - 08.05.2012
have you set it with this function
https://sampwiki.blast.hk/wiki/TextDrawSetSelectable