How can i save and load a string?
How can i save and load a string?
Example. PHP Code:
|
Re: How can i save and load a string?
Var1[id] and Var2[id] are NOT strings.
Read this thread: http://forums.alliedmods.net/showthread.php?t=91207 |
Re: How can i save and load a string?
Quote:
PHP Code:
|
Re: How can i save and load a string?
I recommend reading the String section in the thread posted by fysiks.
Accessing a string within an array of strings and accessing a sub-string can look identical. It all depends on how the variable is defined. Referencing a string with a supplied index ( Var1[ X ] ) can mean either: 1. You want to reference a full string within an array of strings -- Works if the var is defined as Var1[ 33 ][ 50 ] 2. You want to access a sub-string within a single string. -- Works if the var is defined as Var1[ 33 ] Since you are specifying 'id' as your index I assume you are trying to store data on a per-player basis. To solve your problem, create an array of strings so each player has his own string to store info. PHP Code:
|
Re: How can i save and load a string?
Code:
Is just an example, need more code... Sry for not use fvault, nvault or whatever, i never read nothing about that things. |
Re: How can i save and load a string?
Quote:
@thanks all. |
| All times are GMT -4. The time now is 05:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.