Wrong code - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Wrong code (
/showthread.php?tid=640279)
Wrong code -
Loinal - 30.08.2017
I use mysql r41-2
PHP код:
cache_get_row(i,0,name,mysql,30);
Код:
D:\samp folder\ZoneX - ZX\gamemodes\ZoneX.pwn(6195) : error 017: undefined symbol "cache_get_row"
Re: Wrong code -
Xeon™ - 30.08.2017
Quote:
Originally Posted by Loinal
I use mysql r41-2
PHP код:
cache_get_row(i,0,name,mysql,30);
Код:
D:\samp folder\ZoneX - ZX\gamemodes\ZoneX.pwn(6195) : error 017: undefined symbol "cache_get_row"
|
and can you tell us
what's does every variable?
Re: Wrong code -
RedRex - 30.08.2017
Quote:
Originally Posted by Konstantinos
cache_get_data function existed since R7 and removed in R40 so the include version is older or newer (in newer versions, cache_get_row/ cache_get_row_* were renamed to cache_get_value_index/ cache_get_value_index_*).
https://github.com/pBlueG/SA-MP-MySQ...ases/tag/R39-6
|
Just do that.
Re: Wrong code -
Xeon™ - 30.08.2017
Quote:
Originally Posted by RedRex
Just do that.
|
No, he did the function in a wrong way. and bad params tho
Re: Wrong code -
Loinal - 30.08.2017
Quote:
Originally Posted by RedRex
Just do that.
|
PHP код:
cache_get_value_index(i, 0, name, 30);
Код:
D:\samp folder\ZoneX - ZX\gamemodes\ZoneX.pwn(6196) : error 035: argument type mismatch (argument 3)
Re: Wrong code -
Loinal - 31.08.2017
Quote:
Originally Posted by XeonMaster
No, he did the function in a wrong way. and bad params tho
|
PHP код:
//cache_get_row(i,0,name,1,30);
cache_get_value_index(0, 30, name);
I updated it now
Код:
error 035: argument type mismatch (argument 3)
I checked the wiki and iam doing it in the correct way
Re: Wrong code -
Vince - 31.08.2017
Is
name actual an array (string)?
Re: Wrong code -
Loinal - 01.09.2017
Quote:
Originally Posted by Vince
Is name actual an array (string)?
|
ohhhh that fixed my problem thanks