Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4624626
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:09:22+00:00 2026-05-22T03:09:22+00:00

Hi dear developers! I’m just wrote my first iphone game. But i have faced

  • 0

Hi dear developers! I’m just wrote my first iphone game. But i have faced an information output problem below

myStr = [NSString  stringWithFormat:@"Best Score:", counter];

The variable “counter” each time changes value at hit in the enemy. But in the information output I receiving always a zero, like “Best Score: 0”. Help to understand and fix that problem.

Class Texture & Sprite I’ve got from John Ward from http://www.karmatoad.co.uk

Some code here:

myStr = [NSString  stringWithFormat:@"Best Score:", counter];
_Texture = [[Texture alloc] initWithText: myStr fontSize:24];
_Sprite = [[Sprite alloc] initWithTexture: _Texture];
[_Sprite drawSprite];
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T03:09:23+00:00Added an answer on May 22, 2026 at 3:09 am

    As others have suggested, you are missing the placeholder for your variable. I just wanted to provide some background:

    NSString supports the format characters defined for the ANSI C function printf(), plus %@ for any object.

    In format strings, a % character announces a placeholder for a value, with the characters that follow determining the kind of value expected and how to format it, i.e. format specifiers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Dear iPhone Developers, I have an instance method which is meant to return a
Dear stackoveflow, I have this problem. I'm working with an old version of mssql
Dear iPhone Developers, I am writing a Navigation based iPhone application. I want to
A good day dear developers. My name is Danny. This is my first post
Dear developers out there, I have an application up and running with the Telerik
Dear all from the below mentioned table im picking imgurl with this query but
Dear g++ hackers, I have the following question. When some data of an object
Dear all, I have a question about Facebook Page: ( NOT user profile page,
Dear all,Now i have this question in my java program,I think it should be
Dear All, please help me since I'm newbie in SQL Server. I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.