Raised This Month: $ Target: $400
 0% 

nvault save & loading


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-09-2015 , 13:42   Re: nvault save & loading
Reply With Quote #3

Code:
new vaultkey[32], name[32]
formatex(vaultdata, charsmax(vaultdata), "%s %s", name, vaultkey)
The problem was that you were using [id], this specifies the cell from where to start, but you want to start from the beginning. Here using "id" is wrong, you don't have a bi-dimensional array. Probably you were testing alone, so your index was 1, and it become name[1], which cut the first char.
Also instead of 33 you can use 32, that's the max chars a name can have.

@redivcram, why do you keep posting if you can't help ?
__________________

Last edited by HamletEagle; 10-09-2015 at 13:43.
HamletEagle 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 22:14.


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