Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted
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.

Posted
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'])));
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...