SA-MP Forums Archive
Pawn Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pawn Error (/showthread.php?tid=588636)



Pawn Error - Kerem5334 - 11.09.2015

Код:
}
	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


Re: Pawn Error - saffierr - 11.09.2015

Try this

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




Re: Pawn Error - Kerem5334 - 11.09.2015

No progress


Re: Pawn Error - saffierr - 11.09.2015

Remove the bracket under the
PHP код:
return 1



Re: Pawn Error - Banana_Ghost - 11.09.2015

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.


Re: Pawn Error - Kerem5334 - 11.09.2015

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


Re: Pawn Error - StuartD - 11.09.2015

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.


Re: Pawn Error - Kerem5334 - 11.09.2015

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;
    } 



Re: Pawn Error - jlalt - 11.09.2015

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


Re: Pawn Error - Kerem5334 - 11.09.2015

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)