get_pcvar_num Returning strange encoded strings
Here is the glitching part of the plugin I am editing:
Code:
new _chserv_mapcycleCode:
_chserv_mapcycle = register_cvar ( "fps_serverdir", "27021" )Code:
formatex ( filename, sizeof ( filename ) - 1, "%s/maps/%s/mpv/maprefix.ini", g_configsdir, get_pcvar_num(_chserv_mapcycle) )L 10/25/2014 - 06:39:14: [mapsnew.amxx] File "addons/amxmodx/configs/maps/▒; L 10/25/2014 - 06:39:14: [mapsnew.amxx] File "addons/amxmodx/configs/maps/▒; Any ideas why the get_pcvar_num returns the strange encoded string ? Fixed it: instead of the 2nd %s I used %d |
Re: get_pcvar_num Returning strange encoded strings
You are returning an integer with get_pcvar_num, but you are using %s. %i is for integers.
|
Re: get_pcvar_num Returning strange encoded strings
That's because before that it was a string but I decided to make it integer since the other way around it was returning me error. Even tho now it's working fine. Thanks for the feedback tho.
|
Re: get_pcvar_num Returning strange encoded strings
I think get_pcvar_string didn't worked because you didn't used it correctly.
Code:
This is how you use it. |
| All times are GMT -4. The time now is 17:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.