I need help urgently with input text dialogs!
#1

I want to make a system where I type in the input text of the dialog and in the stock receive this text that I typed it how do it?

My codes:

Dialog:

PHP код:
    switch(dialogid){
        case 
4513:{
            if(
response){
                if(!
strlen(inputtext)){
                    
SendClientMessage(playerid,-1,"Nenhum url foi digitado na input!");
                    return 
0;
                }
                
recebermusicayt[playerid] = strval(inputtext);
                new 
Float:Pos[3];
                
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
                new 
vehicleid GetPlayerVehicleID(playerid);
                
Musica[playerid] = 1;
                
vMusica[playerid] = 0;
               }else{
            }
        }
    } 
My Stock
PHP код:
forward ReceberSomVeiculo(playerid);
public 
ReceberSomVeiculo(playerid)
{
        new 
cmdString[128];
        
EnviarSomVeiculo(playerid);
        new 
Float:XFloat:YFloat:Z;
        
GetVehiclePos(SomCarid[playerid], XYZ);
        if(
IsPlayerInRangeOfPoint(playerid15.0XYZ))
        {
        if(
Musica[playerid] == 1)
        {
            if(
vMusica[playerid] == 0)
            {
                
format(cmdStringsizeof(cmdString), "http://www.*******inmp3.com/fetch/?video=%s"inputtext); //Receive inputtext here!
                
for(new 0<MAX_PLAYERSi++){
                       
PlayAudioStreamForPlayer(i,cmdString);// URL 1
                       
vMusica[playerid] = 1;
                }
            }
        }
        }else{
        if(
vMusica[playerid] == 1)
        {
                
StopAudioStreamForPlayer(playerid);
                
Musica[playerid] = 0;
                
vMusica[playerid] = 0;
            }
        }

Reply
#2

Help PLS
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)