03.02.2015, 23:52
Hey guys, i've been through a couple of tutorials in here, i did basic RP servers commands such as /b /do me and they would show only to player in approximate place.
But how to do this for normal chat, without a command.
I tried out this by myself.
Which doesnt work of course that's what i get
What i need is a way with which i can store text that have been entered from the player through normal chat, in a variable i tried with sccanf but nothing ..
But how to do this for normal chat, without a command.
I tried out this by myself.
PHP код:
public OnPlayerText(playerid, text[])
{ //disablelocal
new ptext[100], string[124];
// sscanf(params, "s[100]", ptext)
// sscanf(input, "s[100]",ptext);
format(string,sizeof(string),"%s says: %s",GetName(playerid),ptext);
ProxDetector(30.0,playerid,ptext,WHITE);
return 1;
}
What i need is a way with which i can store text that have been entered from the player through normal chat, in a variable i tried with sccanf but nothing ..