Pawn Error
#1

Код:
}
	if(dialogid == 10000)
	 {
       if(strlen(inputtext) < 64 || strlen(inputtext) > 0);
        {
            PlayAudioStream(playerid, inputtext, RadyoX, RadyoY, RadyoZ);
            return 1;
        }
    return 1;
  }
}
(32594) : error 010: invalid function or declaration
(32596) : error 010: invalid function or declaration
(32599) : error 010: invalid function or declaration
(32601) : error 010: invalid function or declaration
Reply
#2

Try this

PHP код:
}
    if(
dialogid == 10000)
     {
       if(
strlen(inputtext) < || strlen(inputtext) > 64);
        {
            
PlayAudioStream(playeridinputtextRadyoXRadyoYRadyoZ);
            return 
1;
        }
    return 
1;
  }

Reply
#3

No progress
Reply
#4

Remove the bracket under the
PHP код:
return 1
Reply
#5

pawn Код:
if(dialogid == 10000)
     {
       if(strlen(inputtext) < 0 || strlen(inputtext) > 64)
        {
            PlayAudioStream(playerid, inputtext, RadyoX, RadyoY, RadyoZ);
            return 1;
        }
    return 1;
  }
A simple overlook, you had a ";" at the end of the if statement checking for the string length of the text as well as an extra bracket.
Reply
#6

Quote:
Originally Posted by Banana_Ghost
Посмотреть сообщение
pawn Код:
if(dialogid == 10000)
     {
       if(strlen(inputtext) < 0 || strlen(inputtext) > 64)
        {
            PlayAudioStream(playerid, inputtext, RadyoX, RadyoY, RadyoZ);
            return 1;
        }
    return 1;
  }
A simple overlook, you had a ";" at the end of the if statement checking for the string length of the text as well as an extra bracket.
The same problem continues
Reply
#7

As I said in your last topic, can you show the entire public that this was enclosed in as it seems you may have missed something.
Reply
#8

command Division

PHP код:
 if (strcmp("/muzik"cmdtexttrue) == 0)
    {
        new 
Float:XXZFloat:YYZFloat:ZZZ;
           
GetPlayerPos(playeridXXZYYZZZZ);
         
RadyoX[playerid] = XXZ;
        
RadyoY[playerid] = YYZ;
        
RadyoZ[playerid] = ZZZ;
        
ShowPlayerDialog(playerid10000DIALOG_STYLE_INPUT,"TRPG - Mьzik Sistemi","{FFFFFF}Mьziğin {009BFF}URL{FFFFFF} adresini girin.:","Tamam","Kapat");
        return 
1;
    } 
Reply
#9

show us your Public OnDialogResponse full code may you add this dialog after closeing the public :d
Reply
#10

I dropped three the number of errors

PHP код:
    if(dialogid == 5)
     {
       if(
strlen(inputtext) < 0)
        {
            
PlayAudioStreamForPlayer(playeridinputtextRadyoXRadyoYRadyoZ); // 20763
            
return 1;
        }
    return 
1;
  } 
Код:
TownLife.pwn(20763) : error 035: argument type mismatch (argument 3)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)