makes pointer from integer without cast. Please Help.
I am getting warnings about making a pointer from an integer without a cast.
I am using Xcode 3.2
On Mac OS X 10.6.7
Here is the Code:
//Creating the score image. --- This is what gives the error
ScoreImage *scoreImage = [[ScoreImage alloc] init:XPos :YPos];
ScoreImage.h
//the init method being called
-(id) init : (int) givenX : (int) givenY;
ScoreImage.m
- (id)init : (int) givenX : (int) givenY {
xposition = givenX;
yposition = givenY;
}
The code is simply trying to create a image at the same position as the character that was just destroyed.
XPos and YPos are both ints.
I have similar code doing something else and it doesn't give this error.
So I am very lost as to what is causing it.
Any help would be greatly appreciated.
|