Dialog Inputtext
#6

Quote:
Originally Posted by Kraeror
Посмотреть сообщение
Try this:
PHP код:
if(dialogid == DIALOG_STREAMBOX)
{
    new 
string[MAX_PLAYERS];
    if(
response)
    {
        for(new 
0MAX_PLAYERSi++)
        {
            if(
strlen(inputtext) == "%")
            {
                 
strlen(inputtext) = "#";
            }
            
format(stringsizeof(string), "[DEEJAY] %s have play a song from | Url: %s"IsPlayerName(playerid), inputtext);
            
SendClientMessage(i0x00FFCCAAstring);
            
StopAudioStreamForPlayer(i);
            
SendClientMessage(i, -1"================================");
            
PlayAudioStreamForPlayer(iinputtext);
            
SendClientMessage(i, -1"================================");
            
SendClientMessage(i0x00FF99AA"Use /stopmusic if you want to stop the song from playing");
          }
    }
    return 
1;

Код:
Код:
C:\Users\USER\Desktop\Server Scripts\GM\MYGM(2131) : error 033: array must be indexed (variable "inputtext")
C:\Users\USER\Desktop\Server Scripts\GM\MYGM(2133) : error 022: must be lvalue (non-constant)
C:\Users\USER\Desktop\Server Scripts\GM\MYGM(2133) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply


Messages In This Thread
Dialog Inputtext - by AfiqIqbal - 07.10.2017, 06:58
Re: Dialog Inputtext - by Steve57 - 07.10.2017, 07:43
Re: Dialog Inputtext - by Kane - 07.10.2017, 07:47
Re: Dialog Inputtext - by Kraeror - 07.10.2017, 08:31
Re: Dialog Inputtext - by AfiqIqbal - 07.10.2017, 08:36
Re: Dialog Inputtext - by AfiqIqbal - 07.10.2017, 08:42
Re: Dialog Inputtext - by Kane - 07.10.2017, 08:50
Re: Dialog Inputtext - by FuNkYTheGreat - 07.10.2017, 09:00
Re: Dialog Inputtext - by OsmanMalagic - 07.10.2017, 09:10
Re: Dialog Inputtext - by AfiqIqbal - 07.10.2017, 11:57

Forum Jump:


Users browsing this thread: 1 Guest(s)