bladewolf2010 Posted May 31, 2010 Share Posted May 31, 2010 echo sprintf('Rank: %s ", number_format.get_gamerank.'); gives error of Warning: sprintf() [function.sprintf]: Too few arguments in /home/rainofhe/public_html/viewuser.php on line 105 Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted May 31, 2010 Share Posted May 31, 2010 echo sprintf('Rank: %s ", number_format(get_gamerank)); Quote Link to comment Share on other sites More sharing options...
bladewolf2010 Posted May 31, 2010 Author Share Posted May 31, 2010 doesnt get rank Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted May 31, 2010 Share Posted May 31, 2010 echo 'Rank: '.number_format(get_gamerank().' '; echo sprintf("Rank: %s ", number_format(get_gamerank)); Quote Link to comment Share on other sites More sharing options...
NarutoPRG.com Posted May 31, 2010 Share Posted May 31, 2010 Correct me if I am wrong, but I've seen a few sprintf() around on a modification. And most tend to have ( before & ) at the end. Example: echo (sprintf("Rank: %s ", number_format(get_gamerank))); // Code for Crimgame I might just be chatting on, but just curious. :P Quote Link to comment Share on other sites More sharing options...
gurpreet Posted May 31, 2010 Share Posted May 31, 2010 Correct me if I am wrong, but I've seen a few sprintf() around on a modification. And most tend to have ( before & ) at the end. Example: echo (sprintf("Rank: %s ", number_format(get_gamerank))); // Code for Crimgame I might just be chatting on, but just curious. :P I don't think it's necessary because you are echoing the thing, it would be like: echo ('Hello'); It isn't needed, only after sprintf, to show that the stuff inside is sprintf. Quote Link to comment Share on other sites More sharing options...
Equinox Posted May 31, 2010 Share Posted May 31, 2010 echo 'Rank: '.number_format(get_gamerank()).''; Quote Link to comment Share on other sites More sharing options...
NarutoPRG.com Posted May 31, 2010 Share Posted May 31, 2010 Ah, thank you for the information. Really helped. ;) Quote Link to comment Share on other sites More sharing options...
bladewolf2010 Posted May 31, 2010 Author Share Posted May 31, 2010 neither of them get the get_gamerank from global_func Quote Link to comment Share on other sites More sharing options...
NarutoPRG.com Posted May 31, 2010 Share Posted May 31, 2010 Yet again, PHP knowledge is poor. Normally I see $GET_. But many more options could be used, I don't know. And if you can't work it out, try to work something out on the halloffame.php. It could help. Quote Link to comment Share on other sites More sharing options...
bladewolf2010 Posted May 31, 2010 Author Share Posted May 31, 2010 Don't feel bad php is my weak point to :P Quote Link to comment Share on other sites More sharing options...
Danny696 Posted May 31, 2010 Share Posted May 31, 2010 Its $_GET ;) and echo can have parentasis, but usally doesnt Quote Link to comment Share on other sites More sharing options...
NarutoPRG.com Posted May 31, 2010 Share Posted May 31, 2010 Lol. If this is for your incoming MCC game. I'm sure CB or Dabs could help you through support & MSN. ;) Quote Link to comment Share on other sites More sharing options...
bladewolf2010 Posted May 31, 2010 Author Share Posted May 31, 2010 LOL I rather have real programmers help me :P Quote Link to comment Share on other sites More sharing options...
kcmajor36 Posted May 31, 2010 Share Posted May 31, 2010 Lol, don't talk about my friends like that! Joking* Quote Link to comment Share on other sites More sharing options...
Danny696 Posted May 31, 2010 Share Posted May 31, 2010 Add my msn, found in sig, ill help you Quote Link to comment Share on other sites More sharing options...
NarutoPRG.com Posted May 31, 2010 Share Posted May 31, 2010 $_GET. Yeah! I knew that. :| Lol, thanks Danny for the reminder :thumbup: Quote Link to comment Share on other sites More sharing options...
Danny696 Posted May 31, 2010 Share Posted May 31, 2010 Im guessing a typo ;) Quote Link to comment Share on other sites More sharing options...
NarutoPRG.com Posted May 31, 2010 Share Posted May 31, 2010 Nope, just not good at PHP. ^^ But in a couple of months Ill be learning it, hopefully I can remember $_GET. :P Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted May 31, 2010 Share Posted May 31, 2010 echo 'Rank: '.number_format(get_gamerank()).''; echo 'Rank: '.number_format(get_gamerank()); Try posting the function for us bladewolf. EDIT: echo 'Rank: '.number_format(get_gamerank($ir['level'], array($ir['strength'],$ir['agility'],$ir['guard'],$ir['labour'],$ir['IQ']))); Quote Link to comment Share on other sites More sharing options...
Danny696 Posted May 31, 2010 Share Posted May 31, 2010 Its in another post Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted May 31, 2010 Share Posted May 31, 2010 I noticed and i edited my previous post Quote Link to comment Share on other sites More sharing options...
bladewolf2010 Posted May 31, 2010 Author Share Posted May 31, 2010 I added you danny Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted May 31, 2010 Share Posted May 31, 2010 The original post didn't work becuase you used A single Quote ' on the beginning. then a double quote " on the end. Then the very last ' is not needed. That is why it failed at begining. Quote Link to comment Share on other sites More sharing options...
Djkanna Posted June 1, 2010 Share Posted June 1, 2010 Moved to Modification Support Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.