SA-MP Forums Archive
Whats the difference between them. - 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: Whats the difference between them. (/showthread.php?tid=616525)



Whats the difference between them. - Frank901 - 06.09.2016

Hey, im still a learner, so just let me know whats the difference between using msg or string as sending player a textmessage? Since both works as i know right?

Код:
format(msg, sizeof(msg), "TEXT OVER HERE", GetName(otherID));
SendClientMessage(playerid, msg);
Код:
format(string, sizeof(string), TEXT OVER HERE", GetName(playerid), GetName(otherID));
SendClientMessage(playerid, string);



Re: Whats the difference between them. - Vince - 06.09.2016

Nothing. It's just a name given to the variable by the scripter.


Re: Whats the difference between them. - Frank901 - 06.09.2016

Alright, thanks!