06.09.2012, 00:08
Well i'm saving a string named ClassOne then it loads in a variable called pClassOneName[50]
Once it loads the MySQL part (i made it print in console for debug) shows the string loading fine so also with the sscanf loading it also made that print but loading it in a stats dialog or just a simple command it does not show i have another string called Username that loads fine.
Loading part.
Now i've tried to show that string in a command i get a result of noting (empty)
They don't seem to be showing at all just the commas.
I've also checked the MySQL database (phpmyadmin) They are saved and loaded on there.
This is very strange i've spent atleast 2 hours now trying to figure it out.
Once it loads the MySQL part (i made it print in console for debug) shows the string loading fine so also with the sscanf loading it also made that print but loading it in a stats dialog or just a simple command it does not show i have another string called Username that loads fine.
Loading part.
pawn Код:
sscanf(Query, "e<p<|>s[24]s[129]s[50]s[50]s[50]s[50]s[50]s[128]s[24]iiiiiiiiis[16]iiiiiiiiiiiiiiiiiiiii>", pInfo[playerid]);
printf("%s",Query);
Result:
Private|Private|ClassOne|ClassTest|SuperHuman|TestBE|Test5|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
pawn Код:
new string[250];
format(string,sizeof(string),"%s, %s, %s, %s, %s",
pInfo[playerid][pClassOneName],
pInfo[playerid][pClassTwoName],
pInfo[playerid][pClassThreeName],
pInfo[playerid][pClassFourName],
pInfo[playerid][pClassFiveName]);
SendClientMessage(playerid,-1,string);
I've also checked the MySQL database (phpmyadmin) They are saved and loaded on there.
This is very strange i've spent atleast 2 hours now trying to figure it out.