'server'에 해당되는 글 1건

  1. 2011.08.17 [Cocoslive] How to Post score to the cocoslive server

Try the following then you will find no problem with it!  

Have fun~ :p

#import "CLScoreServerPost.h"

 


-(void) postScore:(NSString*)userName{

    CLScoreServerPost *server = [[CLScoreServerPost alloc] initWithGameName:@"Mayday Timeattack" gameKey:@"game key from cocoslive" delegate:self];

    

NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithCapacity:3];

[dict setObject: [NSNumber numberWithInt:(int)(totalTime*100)] forKey:@"cc_score"];

[dict setObject:userName forKey:@"cc_playername"];

    

[server updateScore:dict];

}


-(void) scorePostOk: (id) sender

{


}


-(void) scorePostFail: (id) sender

{


}



If you have any question, reply~





신고
Posted by ParkPill 박필


티스토리 툴바