Dice command.
#6

I have some errors.
PHP Code:
C:\Users\SebyIonut\Desktop\Test\gamemodes\buggedv330.pwn(1930) : error 001expected token";"but found "-identifier-"
C:\Users\SebyIonut\Desktop\Test\gamemodes\buggedv330.pwn(1931) : error 017undefined symbol "str_replace"
C:\Users\SebyIonut\Desktop\Test\gamemodes\buggedv330.pwn(1931) : error 017undefined symbol "You"
C:\Users\SebyIonut\Desktop\Test\gamemodes\buggedv330.pwn(1931) : error 017undefined symbol "rolled"
C:\Users\SebyIonut\Desktop\Test\gamemodes\buggedv330.pwn(1931) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
5 Errors

Here is the lines:
PHP Code:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (!
strcmp("/dice"cmdtext))
   {
    new 
dicenumber random(6) + 1// this is the variable
    
new strdicenumber[2// the String
    
valstr(strdicenumberdicenumber); // this is the valstr function                              <<- 1930
  
SendClientMessage(playeridCOLOR_GREENstr_replace("DICENUMBER"strdicenumber"You rolled #DICENUMBER); <<- 1931
   for(new player = 0; player < MAX_PLAYERS; player++){
   SendClientMessage(player, COLOR_RED, str_replace("
DICENUMBER", strdicenumber, "Someone rolled #DICENUMBER);
              
}
               return 
1// The return statement is going to signal to the command was executed properly
         
}
         return 
0// the return 0; is not going to be executed.

Reply


Messages In This Thread
Dice command. - by GabiXx - 25.12.2015, 23:56
Re: Dice command. - by xXRevolverXx - 26.12.2015, 00:07
Re: Dice command. - by RaajParker - 26.12.2015, 00:45
Re: Dice command. - by IceBilizard - 26.12.2015, 06:01
Re: Dice command. - by xTURBOx - 26.12.2015, 06:03
Re: Dice command. - by GabiXx - 26.12.2015, 10:53
Re: Dice command. - by Ritzy2K - 26.12.2015, 11:10
Re: Dice command. - by xXRevolverXx - 26.12.2015, 11:57

Forum Jump:


Users browsing this thread: 2 Guest(s)