Invalid function
#1

Code:

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(DM[playerid] == true)
if(PlayerInfo[playerid][pVip] == 1)
GetPlayerHealth(killerid,health);
SetPlayerHealth(killerid,health + 50.0);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
			}
			else
			{
GetPlayerHealth(killerid,health);
SetPlayerHealth(killerid,health + 25.0);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
Error: error 010: invalid function or declaration

Error line:

else


I want to make if player vip, he get +50 hp when he kill someone, if he doesn't vip, he get for kill only 25 HP.
Reply


Messages In This Thread
Invalid function - by Louris - 19.11.2012, 16:24
Re: Invalid function - by Ballu Miaa - 19.11.2012, 16:32
Re: Invalid function - by Glad2BeHere - 19.11.2012, 16:35
Re: Invalid function - by Louris - 19.11.2012, 16:36
Re: Invalid function - by Ballu Miaa - 19.11.2012, 16:40
Re: Invalid function - by Louris - 19.11.2012, 16:56
Re: Invalid function - by Ballu Miaa - 19.11.2012, 16:59

Forum Jump:


Users browsing this thread: 1 Guest(s)