SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 13/03/2011, 08:54 PM   #1
kemppis_
Big Clucker
 
Join Date: Mar 2011
Posts: 54
Reputation: 0
Default Whats wrong??

Why this won't work ?

Code:
new MyWanted = GetPlayerWantedLevel(playerid);
SendClientMessage(playerid,COLOR_YELLOW,"Your wanted level is %s",MyWanted);
kemppis_ is offline  
Old 13/03/2011, 08:57 PM   #2
xir
Gangsta
 
Join Date: Aug 2010
Posts: 746
Reputation: 0
Default Re: Whats wrong??

Code:
new string[128];
new MyWanted = GetPlayerWantedLevel(playerid);
format(string, sizeof(string), "Your wanted level is %s", MyWanted);
SendClientMessage(playerid,COLOR_YELLOW,string);

You need to format it.
xir is offline  
Old 13/03/2011, 08:57 PM   #3
ricardo178
High-roller
 
ricardo178's Avatar
 
Join Date: Dec 2010
Posts: 1,635
Reputation: 91
Default Re: Whats wrong??

Where you puted this code? Is a CMD? Post the code... Not only this!
ricardo178 is offline  
Old 13/03/2011, 09:01 PM   #4
kemppis_
Big Clucker
 
Join Date: Mar 2011
Posts: 54
Reputation: 0
Default Re: Whats wrong??

Xir:

It says now, "Your Wanted Level Is", that's it..
kemppis_ is offline  
Old 13/03/2011, 09:03 PM   #5
xir
Gangsta
 
Join Date: Aug 2010
Posts: 746
Reputation: 0
Default Re: Whats wrong??

Sorry, change
Code:
%s

to
Code:
%d
xir is offline  
Old 13/03/2011, 09:07 PM   #6
kemppis_
Big Clucker
 
Join Date: Mar 2011
Posts: 54
Reputation: 0
Default Re: Whats wrong??

Thanks!
kemppis_ is offline  
Old 13/03/2011, 09:08 PM   #7
xir
Gangsta
 
Join Date: Aug 2010
Posts: 746
Reputation: 0
Default Re: Whats wrong??

No problem.
xir is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Whats wrong? Tutrix Help Archive 0 04/01/2011 11:50 PM
[HELP]Whats wrong In here? OldDirtyBastard Help Archive 5 03/08/2010 11:00 AM
Whats wrong with this? HydraX Help Archive 3 29/12/2009 02:06 AM
Whats wrong here? Puzi Help Archive 3 24/08/2009 03:31 PM
Whats wrong here? Frankox Help Archive 10 09/07/2009 09:12 AM


All times are GMT. The time now is 12:58 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.