06.07.2010, 17:55
Код:
public OnPlayerDeath(playerid, killerid, reason) { if(MArea[playerid] == 1) { (GetPlayerColor(playerid) == blue) //here is the 1. error { SetPlayerScore(killerid, GetPlayerScore(killerid) + 0); } return 1; } else if(GetPlayerColor(playerid) == red) { SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); return 1; } if(MArea[playerid] == 2) { (GetPlayerColor(playerid) == red) // here is the 2. error { SetPlayerScore(killerid, GetPlayerScore(killerid) + 0); } return 1; } else if (GetPlayerColor(playerid) == blue) { SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); return 1; } if(MArea[playerid] == 0) if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); GameTextForPlayer(killerid, "Killer", 4000, 4); GameTextForPlayer(playerid, "~b~OMG you ~r~died! ~g~haha!", 500, 1); SendDeathMessage(killerid, playerid, reason); return 1; }
Код:
C:\Documents and Settings\ben\Desktop\Server\filterscripts\cmds.pwn(249 -- 250) : error 029: invalid expression, assumed zero C:\Documents and Settings\ben\Desktop\Server\filterscripts\cmds.pwn(262 -- 263) : error 029: invalid expression, assumed zero
Anyone?
(and if anyone is OUTSIDE MArea 1 or 2 he gets score whoever he/she kills!)