Raised This Month: $ Target: $400
 0% 

Solved arrays


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 01-21-2022 , 01:56   arrays
Reply With Quote #1

I can't understand how this code will behave:
PHP Code:
formatex(szDatacharsmax(szData), "a%i"id
If id == 5 then I will have szData equal to "a5", but if id >= 10 then szData should be, like, "a10".
But it will be:
Code:
 szData[0]=="a"
 szData[1]=="1"
 szData[2]=="0"
or:
Code:
 szData[0]=="a"
 szData[1]=="10"
Which of them? Thanks in advance
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951

Last edited by kww; 01-21-2022 at 02:07.
kww is offline
 



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 11:44.


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