Load & Save bool problem
I'm trying to save 2 booleans, but i'm getting 2 warnings and i know i'm doing something wrong but i can't figure out how i should save / load a bool. Someone help me?
iDoublePoints[33] and isVIP[33] are the bools. code: PHP Code:
|
Re: Load & Save bool problem
You need to save as number if you want to use a %i chars, but if you want to save as boolean,
try on both PHP Code:
|
Re: Load & Save bool problem
the problem is, i'm getting tag mismatches on those lines:
PHP Code:
|
Re: Load & Save bool problem
It's the same case, an boolean value is not a string LOL its a single value.
PHP Code:
</span></span> PHP Code:
|
Re: Load & Save bool problem
Quote:
Code:
iDoublePoints[id] = bool:!!str_to_num(doublepoints) |
Re: Load & Save bool problem
I don't understand why people use # in vault datas, spaces are perfectly fine.
Seems you used a code posted a long time ago. About functions, i think they don't need to be public, vaultdata array doesn't need to be so large, in LoadData you don't need to format data before retrieve it, and formatex can be used instead of format. About your question, either use !!, either use bool tag : PHP Code:
|
Re: Load & Save bool problem
Quote:
|
Re: Load & Save bool problem
! is bolean check, so yes :)
Forgot to say that steamid should be enough as vault key, if you need to save other datas, use another vault file : PHP Code:
|
Re: Load & Save bool problem
Quote:
|
| All times are GMT -4. The time now is 06:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.