R34P3R 11 Posted July 16, 2009 Hi there.. does anyone know why my ranking script whant work ?? while {(local player)} do { if (rating player >= 130 AND rankid player == 5) then { Player setRank "Colonel"; hint format ["Sie wurden soeben zum %1 befördert",rank Player]; }; if (rating player >= 100 AND rankid player == 4) then { Player setRank "Major"; hint format ["Sie wurden soeben zum %1 befördert",rank Player]; }; if (rating player >= 75 AND rankid player == 3) then { Player setRank "Captain"; hint format ["Sie wurden soeben zum %1 befördert",rank Player]; }; if (rating player >= 50 AND rankid player == 2) then { Player setRank "Lieutenant"; hint format ["Sie wurden soeben zum %1 befördert",rank Player]; }; if (rating player >= 20 AND rankid player == 1) then { Player setRank "Sergeant"; hint format ["Sie wurden soeben zum %1 befördert",rank Player]; }; if (rating player >= 7 AND rankid player == 0) then { Player setRank "Corporal"; hint format ["Sie wurden soeben zum %1 befördert",rank Player]; }; sleep 60; }; if i kill 7 enemys i got the rank of Sergeant.. ?? Share this post Link to post Share on other sites
Tajin 349 Posted July 16, 2009 Afaik, "rating" is not the same as "score". try replacing the rating command with the score command. Share this post Link to post Share on other sites
Inkompetent 0 Posted July 16, 2009 Nevermind. Deleturs! Share this post Link to post Share on other sites
R34P3R 11 Posted July 16, 2009 (edited) Nevermind. Deleturs! Whats your problem ? ? ThX i try to test it with the score command. edit: WORKS ! Thanks ! Edited July 16, 2009 by R34P3R Share this post Link to post Share on other sites
Inkompetent 0 Posted July 16, 2009 My problem is nothing at all. I just wrote a post that I realized was irrelevant and didn't contribute to the thread. Glad that you got it working though! Share this post Link to post Share on other sites