14.10.2009, 16:35
Script...
I have no idea what these errors mean!
Plz help me with these errors I new to scripting so I dont know what to do...
Edit: Now only 3 errors, plz help!!!
Code:
public OnPlayerDeath(playerid, killerid, reason) { if(killerid != INVALID_PLAYER_ID) { if(PlayerKills[playerid] >= 5 && PlayerKills[playerid] <= 14) { new string[256]; new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); format(string, sizeof(string), "[Spree]%s has ended %s's killing spree! His reward is $750!", KillerName, PlayerName); SendClientMessageToAll(COLOR_GREEN, string); GivePlayerMoney(killerid, 750); } if(PlayerKills[playerid] >= 15 && PlayerKills[playerid] <= 44) { new string[256]; new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); format(string, sizeof(string), "[Spree]%s has ended %s's killing spree! His reward is $1500!", KillerName, PlayerName); SendClientMessageToAll(COLOR_GREEN, string); GivePlayerMoney(killerid, 1500); } if(PlayerKills[playerid] >= 45) { new string[256]; new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); format(string, sizeof(string), "[Spree]%s has ended %s's killing spree! His reward is $2500!", KillerName, PlayerName); SendClientMessageToAll(COLOR_GREEN, string); GivePlayerMoney(killerid, 2500); } if(PlayerKills[killerid] == 5) { new string[256]; new KillerName[MAX_PLAYER_NAME]; GetPlayerName(killerid, KillerName, sizeof(KillerName)); format(string, sizeof(string), "[Spree]%s is now on a killing spree!", KillerName); SendClientMessageToAll(COLOR_GREEN, string); GivePlayerMoney(killerid, 750); } if(PlayerKills[killerid] == 15) { new string[256]; new KillerName[MAX_PLAYER_NAME]; GetPlayerName(killerid, KillerName, sizeof(KillerName)); format(string, sizeof(string), "[Spree]%s has been awarded a Minigun! Stop him before he does anymore damage!", KillerName); SendClientMessageToAll(COLOR_GREEN, string); GivePlayerWeapon(killerid, 38, 3000); GivePlayerMoney(killerid, 1500); } if(PlayerKills[killerid] == 45) { new string[256]; new KillerName[MAX_PLAYER_NAME]; GetPlayerName(killerid, KillerName, sizeof(KillerName)); format(string, sizeof(string), "[Spree]%s has 45 kills! Shame on the rest of you!", KillerName); SendClientMessageToAll(COLOR_GREEN, string); GivePlayerWeapon(killerid, 38, 3000); GivePlayerMoney(killerid, 2500); } } PlayerKills[killerid]++; PlayerKills[playerid] = 0; return 1; }
Code:
C:\DOCUME~1\USER\Desktop\server\GAMEMO~1\Death.pwn(300) : error 017: undefined symbol "KillerName" C:\DOCUME~1\USER\Desktop\server\GAMEMO~1\Death.pwn(310) : error 017: undefined symbol "KillerName" C:\DOCUME~1\USER\Desktop\server\GAMEMO~1\Death.pwn(320) : error 017: undefined symbol "KillerName"
Plz help me with these errors I new to scripting so I dont know what to do...
Edit: Now only 3 errors, plz help!!!