Raised This Month: $12 Target: $400
 3% 

...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cristian505
Senior Member
Join Date: Oct 2020
Old 09-15-2021 , 11:31   ...
Reply With Quote #1

...

Last edited by Cristian505; 08-10-2022 at 14:32.
Cristian505 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-15-2021 , 12:20   Re: ArrayGetString
Reply With Quote #2

This is not how you pass strings around with natives. You have to use get_string and set_string
http://amxmodx.org/api/amxmodx/get_string
http://amxmodx.org/api/amxmodx/set_string

In your case get_string should be what you want. Also MaxClasses is not needed, you can get the current number of classes by using ArraySize(ZombieName).
PHP Code:
ArrayGetString(ZombieNameZombieNameReal[id], Namesizeof(Name)) 
This is also wrong, you should use charsmax for strings, not sizeof. Otherwise, you risk not having space for the null terminator.
__________________

Last edited by HamletEagle; 09-15-2021 at 12:22.
HamletEagle is offline
Cristian505
Senior Member
Join Date: Oct 2020
Old 09-15-2021 , 12:39   Re: ArrayGetString
Reply With Quote #3

...

Last edited by Cristian505; 08-10-2022 at 14:32.
Cristian505 is offline
Reply


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

Forum Jump


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


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