C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(214) : error 010: invalid function or declaration C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(219) : error 010: invalid function or declaration
public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); return 1; } if(IsPlayerConnected(killerid)) { GivePlayerMoney(killerid, 50); SetPlayerScore(killerid, GetPlayerScore(killerid) +1); } return 1;
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
if(IsPlayerConnected(killerid))
{
GivePlayerMoney(killerid, 50);
SetPlayerScore(killerid, GetPlayerScore(killerid) +1);
}
return 1;
}
These are the errors
Код:
C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(214) : error 010: invalid function or declaration C:\Documents and Settings\Administrator\Desktop\New GTA Server\gamemodes\DeathMatch.pwn(219) : error 010: invalid function or declaration Код:
public OnPlayerDeath(playerid, killerid, reason); { SendDeathMessage(killerid, playerid, reason); return 1; } if(IsPlayerConnected(killerid) { GivePlayerMoney(killerid, 50); SetPlayerScore(killerid, GetPlayerScore(killerid) +1); } return 1; |
You messed up the brackets and returns.
pawn Код:
|