Wrong code
#1

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"
Reply
#2

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?
Reply
#3

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.
Reply
#4

Quote:
Originally Posted by RedRex
Посмотреть сообщение
Just do that.
No, he did the function in a wrong way. and bad params tho
Reply
#5

Quote:
Originally Posted by RedRex
Посмотреть сообщение
Just do that.
PHP код:
cache_get_value_index(i0name30); 
Код:
D:\samp folder\ZoneX - ZX\gamemodes\ZoneX.pwn(6196) : error 035: argument type mismatch (argument 3)
Reply
#6

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(030name); 
I updated it now
Код:
error 035: argument type mismatch (argument 3)
I checked the wiki and iam doing it in the correct way
Reply
#7

Is name actual an array (string)?
Reply
#8

Quote:
Originally Posted by Vince
Посмотреть сообщение
Is name actual an array (string)?
ohhhh that fixed my problem thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)