Raised This Month: $ Target: $400
 0% 

How to make "a = b" in AMXX scripting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Eyup
Junior Member
Join Date: Apr 2022
Old 04-23-2022 , 12:20   Re: How to make "a = b" in AMXX scripting
Reply With Quote #1

Quote:
Originally Posted by Supremache View Post
Are u talking about this line:
'a' is numeric variable so you should use number field '%d or %i'

Code:
 if you are using amx modx v1.8.3 or highter then use fmt  get_user_info(iPlayers[iNum], fmt( "'%d'ate", a ), UserRate, 8);  Or use this way formatex(MsgOnMotd, 499, "Name: %s | Rate %d%s | Cmd: %s | Upd: %s | Interp: %s", UserName, a, UserRate, UserCmdRate, UserUpdRate, UserInterp);  if you means u want to add the number as string then use num_to_str new szNum[ 10 ]; num_to_str( a,  szNum, charsmax(  szNum) ) get_user_info(iPlayers[iNum], fmt( "'%s'ate", szNum ), UserRate, 8);
Tried fmt way and it show's the all player's rate as a blank. It doesn't shows anything.
Eyup is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 21:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode