Whats Wrong?
#1

I Put This Under OnPlayerText

Код:
	if (strcmp("lol", text, true, 10) == 0)
	{
		GetPlayerName(playerid, sendername, sizeof(sendername));
		format(string, sizeof(string), "* %s Laughs", sendername);
		ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
	}
I got the other sendername stuff, But when im in-game and when I type lol, nothing happens? Am I missing something?
Reply
#2

Try to change:
pawn Код:
if (strcmp("lol", text, true, 10) == 0)
To
pawn Код:
if(strcmp(text, "lol", true) == 0)
Thats how I use it in my Gamemode
Reply
#3

Doesn't Work, My Player just says: lol :P
Reply
#4

Try:
pawn Код:
if(strcmp(text, "lol", true) == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Laughs", sendername);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
return 0;
}
That looks just like the one I use
Reply
#5

Quote:
Originally Posted by Fj0rtizFredde
Try:
pawn Код:
if(strcmp(text, "lol", true) == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Laughs", sendername);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
return 0;
}
That looks just like the one I use
mine looks exactly the same!
Reply
#6

But in your first post you did not have return 0;
Reply
#7

i had return nothing.

Didnt put a return there
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)