MySQL Strings
#4

Yeah but if I make a printf or SendClientMessage in OnSmsUserLoad, it shows the message.
From MySQL the data is retrived okay, because these shows the message fine:

Код:
public OnSmsUserLoad(playerid, telefono)
{
	new id, loaded;
    while(loaded < cache_get_row_count())
	{
	    id = cache_get_field_content_int(loaded, "ID");
	   	pSMS[playerid][ID][loaded] = id;
		pSMS[playerid][Telep][loaded] = cache_get_field_content_int(loaded, "Phone");
		pSMS[playerid][From][loaded] = cache_get_field_content_int(loaded, "From");
		cache_get_field_content(loaded, "Message", pSMS[playerid][Message][loaded]);
		pSMS[playerid][Stats][loaded] = cache_get_field_content_int(loaded, "Stats");
		SendClientMessage(playerid, -1, pSMS[playerid][Message][loaded]);
		loaded++;
	}
}
I think the problem comes when I try to call pSMS[playerid][Message][loaded], for example:

Код:
pSMS[playerid][Phone][1]; // Shows number OK
pSMS[playerid][Message][1]; // Shows message incorrectly.
Reply


Messages In This Thread
MySQL Strings - by HidroDF - 18.12.2016, 16:50
Respuesta: MySQL Strings - by HidroDF - 18.12.2016, 20:03
Re: MySQL Strings - by Vince - 18.12.2016, 20:11
Respuesta: MySQL Strings - by HidroDF - 18.12.2016, 22:06
Re: MySQL Strings - by iLearner - 18.12.2016, 22:24
Re: MySQL Strings - by Konstantinos - 18.12.2016, 22:35
Respuesta: Re: MySQL Strings - by HidroDF - 18.12.2016, 22:36
Respuesta: Re: MySQL Strings - by HidroDF - 18.12.2016, 22:54
Re: Respuesta: Re: MySQL Strings - by Konstantinos - 18.12.2016, 22:58

Forum Jump:


Users browsing this thread: 1 Guest(s)