SA-MP Forums Archive
[Plz Help]Where does "return 1;" go? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Plz Help]Where does "return 1;" go? (/showthread.php?tid=105250)



[Plz Help]Where does "return 1;" go? - Tigerbeast11 - 28.10.2009

Hey!

Here is the bit of code from my script. This is under OnPlayerDeath... Please can someone tell me where the "return 1;" goes!
pawn Код:
if(PlayerKills[killerid] == 45)
        {
                SendClientMessage(playerid, COLOR_YELLOW,"You have gotten 45 kills! You can use /weaps to get all the weapons!");
        new PlayerName[MAX_PLAYER_NAME],
                string[128];
                GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
                format(string, sizeof(string), "[Spree]%s has gotten 45 kills and has now unlocked all weapons!", PlayerName);
                SendClientMessageToAll(COLOR_YELLOW, string);
                GivePlayerMoney(playerid,1000);

                PlayerKills[playerid] = 0; //Set the murdered's kill count to 0
            PlayerKills[killerid]++; //Set the killer's kill count +1
            }
    }
    }
}
Here is the pastebin:
http://pastebin.com/m582c7cce



Re: [Plz Help]Where does "return 1;" go? - Tigerbeast11 - 28.10.2009

Sorry for bump!