SA-MP Forums Archive
Mysql string messaging - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Mysql string messaging (/showthread.php?tid=597143)



Mysql string messaging - DerickClark - 27.12.2015

It's not showing the string message, i set it inside the database. this how it set up
Код:
UPDATE `players` SET `personalmsg` = 'Test Mesasge `players`.`ID` = 1;
Код:
    PlayerInfo[playerid][personalmsg] = cache_get_field_content_int(0, "personalmsg");
Код:
    new string[129];
    format(string, sizeof(string), "Test message: %s %s", Name[playerid], PlayerInfo[playerid][personalmsg]);
    SendClientMessageToAll(COLOUR_WHITE, string);



Re: Mysql string messaging - Vince - 27.12.2015

Have you never wondered what the _int suffix meant?


Re: Mysql string messaging - DerickClark - 27.12.2015

Quote:
Originally Posted by Vince
Посмотреть сообщение
Have you never wondered what the _int suffix meant?
no im not too good of a coder


Re: Mysql string messaging - PrO.GameR - 27.12.2015

If you don't know the difference of an integer and a string, you are not a coder, you are just a clueless copy-paster
seriously READ before you write a question, I'm more than 100% sure you could've found your problem if only you had read BlueG's mysql wiki.


Re: Mysql string messaging - DerickClark - 27.12.2015

Quote:
Originally Posted by PrO.GameR
Посмотреть сообщение
If you don't know the difference of an integer and a string, you are not a coder, you are just a clueless copy-paster
seriously READ before you write a question, I'm more than 100% sure you could've found your problem if only you had read BlueG's mysql wiki.
i said im not too good of a coder....