[Ajuda] Se assim carrega uma float, como carregar uma string? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Se assim carrega uma float, como carregar uma string? (
/showthread.php?tid=610578)
Se assim carrega uma float, como carregar uma string? -
pedrotvr - 26.06.2016
Desse jeito eu carrego funcionalmente uma float no meu sistema de login do mysql
Код:
float_dest[8] = cache_get_field_content_float(0, "carroid"); carroid[playerid] = float_dest[8];
Como carregar uma string?
Como essa:
Код:
new nomedopai[30][MAX_PLAYERS];
Respuesta: Se assim carrega uma float, como carregar uma string? -
SammyJ - 26.06.2016
PHP код:
new nomedopai[MAX_PLAYERS];
cache_get_field_content(0, "nomedopai", nomedopai[playerid], handle, 30);
Re: Se assim carrega uma float, como carregar uma string? -
pWesley - 26.06.2016
O valor 30 (referente a string) vem depois do valor MAX_PLAYERS.
Re: Se assim carrega uma float, como carregar uma string? -
pedrotvr - 26.06.2016
reputados! Obrigado!
o que seria esse
handle?
Re: Se assim carrega uma float, como carregar uma string? -
pWesley - 26.06.2016
O handle no caso й a variбvel que armazena a conexгo MySQL. Ela que farб com que a funзгo funcione.
Re: Se assim carrega uma float, como carregar uma string? -
pedrotvr - 26.06.2016
Quote:
Originally Posted by pWesley
O handle no caso й a variбvel que armazena a conexгo MySQL. Ela que farб com que a funзгo funcione.
|
Isso?
Код:
ConnectMYSQL = mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_DB,MYSQL_PASS);
Ou eu to viajando?
EDIT:
Код:
error 017: undefined symbol "handle"
Respuesta: Re: Se assim carrega uma float, como carregar uma string? -
SammyJ - 26.06.2016
Quote:
Originally Posted by pedrotvr
Isso?
Код:
ConnectMYSQL = mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_DB,MYSQL_PASS);
Ou eu to viajando?
EDIT:
Код:
error 017: undefined symbol "handle"
|
Correto somente mude o handle por ConnectMYSQL; Que й sua variavel de connecзгo com o MySQL;
Re: Se assim carrega uma float, como carregar uma string? -
pedrotvr - 26.06.2016
Obrigado gente!