Posts: 32
Threads: 12
Joined: Mar 2018
Reputation:
0
how to create a variable, when format () then it sends SendClientMessage without having to set
Example:
I put a function called ''textfm''
textfm(string, sizeof(string), "Player ID [%d]", playerid);
it will show: Player ID 1.
without having to use SendClientMessage.
Posts: 52
Threads: 2
Joined: Apr 2018
Quote:
Originally Posted by jasperschellekens
Im not sure but you want to do but i guess something like this?
PHP код:
textfm(playerid)
{
new textfmstr[128];
textfmstr(string, sizeof(textfmstr), "Player ID [%d]", playerid);
SendClientMessage(playerid, -1, textfmstr);
return 1;
}
You can then use this in your script:
Btw only make it a stock if you plan on using it outside the script your putting it in.
https://sampforum.blast.hk/showthread.php?tid=570635
|
please that should be
Код:
textfm(playerid)
{
new textfmstr[128];
format(string, sizeof(textfmstr), "Player ID [%d]", playerid);
SendClientMessage(playerid, -1, textfmstr);
return 1;
}
format not textfmstr
hmm