Problema com Stock
#1

To criando essa stock e nгo vai da erro.

Erros:
Код:
C:\Users\Natan\Desktop\Servidor\gamemodes\GM.pwn(27186) : error 029: invalid expression, assumed zero
C:\Users\Natan\Desktop\Servidor\gamemodes\GM.pwn(27186) : error 012: invalid function call, not a valid address
C:\Users\Natan\Desktop\Servidor\gamemodes\GM.pwn(27186) : warning 215: expression has no effect
C:\Users\Natan\Desktop\Servidor\gamemodes\GM.pwn(27186) : error 001: expected token: ";", but found ")"
C:\Users\Natan\Desktop\Servidor\gamemodes\GM.pwn(27186) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Stock:
PHP код:
                stock recebermusicayt
                
{
                    for(new 
0<MAX_PLAYERSi++){
                        if(
IsPlayerInRangeOfPoint(i,10.0,Pos[0],Pos[1],Pos[2])){
                            
PlayAudioStreamForPlayer(i,cmdString);
                        }
                    }
                } 
To criando essa stock pra colocar dentro de um dialog o dialog tem uma funзгo chamada cmdstring ai o cara digita no input o link a funзгo geta ele e outra funзгo vai geta do stock esse link.
Reply
#2

Quero tipo que essa stock:

PHP код:
public ReceberSomVeiculo(playerid)
{
        
EnviarSomVeiculo(playerid);
        new 
Float:XFloat:YFloat:Z;
        
GetVehiclePos(SomCarid[playerid], XYZ);
        if(
IsPlayerInRangeOfPoint(playerid15.0XYZ))
        {
        if(
Musica[playerid] == 1)
        {
            if(
vMusica[playerid] == 0)
            {
                new 
cmdString[128];
                
format(cmdStringsizeof(cmdString), "http://www.*******inmp3.com/fetch/?video=%s"recebermusicayt);
                for(new 
0<MAX_PLAYERSi++){
                       
PlayAudioStreamForPlayer(i,cmdString);// URL 1
                       
vMusica[playerid] = 1;
                }
            }
        }
        if(
Musica[playerid] == 2)
        {
            if(
vMusica[playerid] == 0)
            {
                for(new 
0<MAX_PLAYERSi++){
                    
PlayAudioStreamForPlayer(i,recebermusicayt);// URL 2
                    
vMusica[playerid] = 1;
                }
            }
        }
        }else{
        if(
vMusica[playerid] == 1)
        {
                
StopAudioStreamForPlayer(playerid);
                
Musica[playerid] = 0;
                
vMusica[playerid] = 0;
            }
        }

aquele format(cmdString, sizeof(cmdString), "http://www.*******inmp3.com/fetch/?video=%s", recebermusicayt);
de uma stock receba o recebermusicayt disso:

PHP код:
recebermusicayt[playerid] = strval(inputtext); 
que fica em uma dialog
Reply
#3

PHP код:
stock recebermusicayt(playerid)       
    { 
         for(new 
0<MAX_PLAYERSi++){ 
             if(
IsPlayerInRangeOfPoint(i,10.0,Pos[0],Pos[1],Pos[2])){ 
                 
PlayAudioStreamForPlayer(i,cmdString); 
            } 
        } 
    } 
Reply
#4

Nгo deu
Reply
#5

Tipo a stock receber o inputtext de um dialog.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)