SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 05/09/2018, 08:12 AM   #1
khoinewghost
Little Clucker
 
Join Date: Dec 2014
Posts: 10
Reputation: 0
Default Help Press [ESC] to close TextDraw

hello everyone - if i want when i press ESC this textdraw will close
sorry for my bad english
https://uphinhnhanh.com/image/3yKV3d
khoinewghost is offline   Reply With Quote
Old 05/09/2018, 12:18 PM   #2
khoinewghost
Little Clucker
 
Join Date: Dec 2014
Posts: 10
Reputation: 0
Default Re: Help Press [ESC] to close TextDraw

help meee!!
khoinewghost is offline   Reply With Quote
Old 05/09/2018, 12:34 PM   #3
v1k1nG
Huge Clucker
 
v1k1nG's Avatar
 
Join Date: Feb 2018
Posts: 497
Reputation: 35
Default Re: Help Press [ESC] to close TextDraw

PHP Code:
if(clickedid == Text:65535) {
TextDrawHideForPlayer(playeridYourTextDrawName);

__________________
My test server: 51.91.122.18:7778
My Discord contact: [SF]kAn3#9933
YT https://www.youtube.com/channel/UCrM...QtP2pczguqvppw
v1k1nG is offline   Reply With Quote
Old 05/09/2018, 01:10 PM   #4
khoinewghost
Little Clucker
 
Join Date: Dec 2014
Posts: 10
Reputation: 0
Default Re: Help Press [ESC] to close TextDraw

on OnPlayerClickPlayerTextDraw
help me
khoinewghost is offline   Reply With Quote
Old 05/09/2018, 01:10 PM   #5
v1k1nG
Huge Clucker
 
v1k1nG's Avatar
 
Join Date: Feb 2018
Posts: 497
Reputation: 35
Default Re: Help Press [ESC] to close TextDraw

Under OnPlayerClickTextDraw
__________________
My test server: 51.91.122.18:7778
My Discord contact: [SF]kAn3#9933
YT https://www.youtube.com/channel/UCrM...QtP2pczguqvppw
v1k1nG is offline   Reply With Quote
Old 05/09/2018, 01:12 PM   #6
khoinewghost
Little Clucker
 
Join Date: Dec 2014
Posts: 10
Reputation: 0
Default Re: Help Press [ESC] to close TextDraw

Quote:
Originally Posted by v1k1nG View Post
PHP Code:
if(clickedid == Text:65535) {
TextDrawHideForPlayer(playeridYourTextDrawName);


on OnPlayerClickPlayerTextDraw sir help me
khoinewghost is offline   Reply With Quote
Old 05/09/2018, 01:15 PM   #7
v1k1nG
Huge Clucker
 
v1k1nG's Avatar
 
Join Date: Feb 2018
Posts: 497
Reputation: 35
Default Re: Help Press [ESC] to close TextDraw

Oh lol you meant that.

PHP Code:
public OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid){
if(
playertextid == PlayerText:65535){
// Hide the textdraws
}

__________________
My test server: 51.91.122.18:7778
My Discord contact: [SF]kAn3#9933
YT https://www.youtube.com/channel/UCrM...QtP2pczguqvppw
v1k1nG is offline   Reply With Quote
Old 05/09/2018, 01:29 PM   #8
khoinewghost
Little Clucker
 
Join Date: Dec 2014
Posts: 10
Reputation: 0
Default Re: Help Press [ESC] to close TextDraw

Quote:
Originally Posted by v1k1nG View Post
Oh lol you meant that.

PHP Code:
public OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid){
if(
playertextid == PlayerText:65535){
// Hide the textdraws
}


lol, it eror
./includes/3M26RP.pwn(110971) : error 035: argument type mismatch (argument 2)
./includes/3M26RP.pwn(110972) : error 035: argument type mismatch (argument 2)
./includes/3M26RP.pwn(110973) : error 035: argument type mismatch (argument 2)
./includes/3M26RP.pwn(110974) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
khoinewghost is offline   Reply With Quote
Old 05/09/2018, 01:31 PM   #9
solstice_
Gangsta
 
solstice_'s Avatar
 
Join Date: Feb 2016
Location: basement
Posts: 540
Reputation: 68
Default Re: Help Press [ESC] to close TextDraw

Quote:
Originally Posted by khoinewghost View Post
lol, it eror
./includes/3M26RP.pwn(110971) : error 035: argument type mismatch (argument 2)
./includes/3M26RP.pwn(110972) : error 035: argument type mismatch (argument 2)
./includes/3M26RP.pwn(110973) : error 035: argument type mismatch (argument 2)
./includes/3M26RP.pwn(110974) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
How about you post some code? We don't know how you defined your textdraw.
solstice_ is offline   Reply With Quote
Old 05/09/2018, 01:33 PM   #10
v1k1nG
Huge Clucker
 
v1k1nG's Avatar
 
Join Date: Feb 2018
Posts: 497
Reputation: 35
Default Re: Help Press [ESC] to close TextDraw

Quote:
Originally Posted by khoinewghost View Post
lol, it eror
./includes/3M26RP.pwn(110971) : error 035: argument type mismatch (argument 2)
./includes/3M26RP.pwn(110972) : error 035: argument type mismatch (argument 2)
./includes/3M26RP.pwn(110973) : error 035: argument type mismatch (argument 2)
./includes/3M26RP.pwn(110974) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Post your code then? We cannot see in your PC from here
__________________
My test server: 51.91.122.18:7778
My Discord contact: [SF]kAn3#9933
YT https://www.youtube.com/channel/UCrM...QtP2pczguqvppw
v1k1nG is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Press n to close this box CarRamper Scripting Help 1 21/06/2016 10:36 AM
TextDraw Won't Close RandomDude Scripting Help 4 12/08/2013 12:49 PM
Click to close textdraw captainjohn Scripting Help 2 21/03/2012 07:45 PM
close textdraw ThamburaaN Scripting Help 3 13/01/2012 01:56 AM
Textdraw bugs / SetTimerEx stops when press Alt+Tab simstosh Help Archive 1 19/08/2010 05:46 AM


All times are GMT. The time now is 06:00 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.