AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ... (https://forums.alliedmods.net/showthread.php?t=334318)

Cristian505 09-15-2021 11:31

...
 
...

HamletEagle 09-15-2021 12:20

Re: ArrayGetString
 
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.

Cristian505 09-15-2021 12:39

Re: ArrayGetString
 
...


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

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