#1

hi guys
i wanna make text in text
i mean when i press 1 show to me new text and choose somthing new i will made it
and can back to first text with press LMB
PHP код:
    if(text[0] == '1')
    {
        if(
ShowMenuBurgerText[playerid] == 1)
        {
          
//My Code
        
}
    }
    return 
0;

Reply
#2

I don't know if I understand, hence I will not make an example for you but I can refer you to some wiki articles of functions that can be used to do what I think you want to do.

https://sampwiki.blast.hk/wiki/SetPVarInt
https://sampwiki.blast.hk/wiki/GetPVarInt
https://sampwiki.blast.hk/wiki/DeletePVar
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Reply
#3

Quote:
Originally Posted by Troydere
Посмотреть сообщение
I don't know if I understand, hence I will not make an example for you but I can refer you to some wiki articles of functions that can be used to do what I think you want to do.

https://sampwiki.blast.hk/wiki/SetPVarInt
https://sampwiki.blast.hk/wiki/GetPVarInt
https://sampwiki.blast.hk/wiki/DeletePVar
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
i try to making new text in text

let's start
when i write 1 i will goto Los Santos okay
i want make when i write 1 hide to me this textdraw and showing to me new textdraw with my process
Reply
#4

Here you go.

I dont know where and how you open that dialog/screen.
But add this to the part where the screen gets opened.
PHP код:
SkyDiveDialog[playerid] = 1
Add this to onplayerconnect
PHP код:
SkyDiveDialog[playerid] = 0
PHP код:
new SkyDiveDialog[MAX_PLAYERS];
public 
OnPlayerText(playerid,text[])
{
if(
SkyDiveDialog[playerid] == 1
{
if(
strfind(text"1"true) != -1)
    {
        
//do something here
        
SkyDiveDialog[playerid] = 0;
        
    }
if(
strfind(text"2"true) != -1)
    {
        
//do something here
        
SkyDiveDialog[playerid] = 0;
        
    }
if(
strfind(text"3"true) != -1)
    {
        
//do something here
        
SkyDiveDialog[playerid] = 0;
        
    }
}else return 
0;
    return 
0;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)