mysql string help
#1

pawn Код:
new Save[2][80];

Save[0] = cache_get_field_content_int(0, "String1");
Save[1] = cache_get_field_content_int(0, "String2");
This will work? have some other better way to store string on a var?
Reply
#2

pawn Код:
new Save[2][80];
valstr(Save[0], cache_get_field_content_int(0, "String1"));
valstr(Save[1], cache_get_field_content_int(0, "String2"));
Reply
#3

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
pawn Код:
new Save[2][80];
valstr(Save[0], cache_get_field_content_int(0, "String1"));
valstr(Save[1], cache_get_field_content_int(0, "String2"));
but cache_get_field_content_int is for integer how he could store value as a strng if it it is an integer? valstr is converting value to string ? Is it something like strval?
Reply
#4

Quote:
Originally Posted by vassilis
Посмотреть сообщение
but cache_get_field_content_int is for integer how he could store value as a strng if it it is an integer? valstr is converting value to string ? Is it something like strval?
It is the opposite of strval, it gets the integer from "cache_get_field_content_int(0, "String1")" and puts it into your array as a string.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)