Loading mysql
#1

So i don't know what is going on, in the database it's saved correctly, but when i load it to server letters mess up not showing text correctly

in db:



on server:



This is how i load it

pawn Код:
cache_get_field_content(i, "Adresa", temp);
format(HInfo[i][Adresa], 50, "%s", temp);
and just another question, how can i make label showing above pickup not in it ?
Reply
#2

do you save it as a packed string?
Reply
#3

Just a part of scrip :

pawn Код:
new id = SpawnedHouses+1;
pawn Код:
"INSERT INTO `kuce` (`Adresa`) VALUES ('Commerce %d')", id);
Reply
#4

anyone ?
Reply
#5

anyone ?
Reply
#6

you don't need to format the destination (HInfo[i][Adresa]) be cause "cache_get_field_content" already does.
pawn Код:
cache_get_field_content(i, "Adresa", HInfo[i][Adresa], /* Your mysql connection , default , it's known as "mysql", */, sizeof(HInfo[i][Adresa]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)