Damaged
#1

Hello, I'm trying to make the script check if the player has taken damage recently before going to a DM arena. I'm getting an error.

Код:
error 029: invalid expression, assumed zero
Код:
if(damaged[playerid] == 0)
		DM1(playerid);
		SendClientMessage(playerid, -1, "{F81414}[INFO]{FFFFFF} Remember use /lobby when you want to leave! Good luck!");
                {
		else //This line is where I receive the error
                }
		SendClientMessage(playerid, COLOR_SERVER, "SERVER: {ffffff}You have recently taken damage!");
Reply
#2

Braces! Use them!
Reply
#3

Added still same error.
Reply
#4

PHP код:
    if(damaged[playerid] == 0)
    {
        
DM1(playerid);
        
SendClientMessage(playerid, -1"{F81414}[INFO]{FFFFFF} Remember use /lobby when you want to leave! Good luck!");
    }else return 
SendClientMessage(playeridCOLOR_SERVER"SERVER: {ffffff}You have recently taken damage!"); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)