bladewolf2010 Posted May 31, 2010 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
Zero-Affect Posted May 31, 2010 Posted May 31, 2010 echo sprintf('Rank: %s ", number_format(get_gamerank)); Quote
Zero-Affect Posted May 31, 2010 Posted May 31, 2010 echo 'Rank: '.number_format(get_gamerank().' '; echo sprintf("Rank: %s ", number_format(get_gamerank)); Quote
NarutoPRG.com Posted May 31, 2010 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
gurpreet Posted May 31, 2010 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
Equinox Posted May 31, 2010 Posted May 31, 2010 echo 'Rank: '.number_format(get_gamerank()).''; Quote
NarutoPRG.com Posted May 31, 2010 Posted May 31, 2010 Ah, thank you for the information. Really helped. ;) Quote
bladewolf2010 Posted May 31, 2010 Author Posted May 31, 2010 neither of them get the get_gamerank from global_func Quote
NarutoPRG.com Posted May 31, 2010 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
bladewolf2010 Posted May 31, 2010 Author Posted May 31, 2010 Don't feel bad php is my weak point to :P Quote
Danny696 Posted May 31, 2010 Posted May 31, 2010 Its $_GET ;) and echo can have parentasis, but usally doesnt Quote
NarutoPRG.com Posted May 31, 2010 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
bladewolf2010 Posted May 31, 2010 Author Posted May 31, 2010 LOL I rather have real programmers help me :P Quote
kcmajor36 Posted May 31, 2010 Posted May 31, 2010 Lol, don't talk about my friends like that! Joking* Quote
NarutoPRG.com Posted May 31, 2010 Posted May 31, 2010 $_GET. Yeah! I knew that. :| Lol, thanks Danny for the reminder :thumbup: Quote
NarutoPRG.com Posted May 31, 2010 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
Zero-Affect Posted May 31, 2010 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
AlabamaHit Posted May 31, 2010 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
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.