Pawn Style!
#1

Code:
public OnPlayerCommandText(playerid,cmdtext[])
{
	if (strcmp(cmdtext, "/clickontopic", true)==0)
	{
		SendClientMessage(playerid, COLOR_BLUE, "Reply In this topic, With Pawno Language Style");
 		SendClientMessage(playerid, COLOR_GREEN, "If you reply normally, i hope mods ban u! ");
		return 1;
	}
//===============================================================================
	if (strcmp(cmdtext, "/sorry", true)==0)
	{
		SendClientMessage(playerid, COLOR_BLUE, "Sorry my pawn is not so good");
 		SendClientMessage(playerid, COLOR_GREEN, "that's why i use SendClientMessages");
		return 1;
	}
Reply
#2

Doesn't work 5 errors.
Reply
#3


pawn Code:
public OnPlayerReply(playerid,topic)
{
    SendClientMessage(playerid, COLOR_RED,"Hey, my name is \"Mike\"...");
}
Reply
#4

I never understood what these do.

\"Blah"\
Reply
#5

Quote:
Originally Posted by ^Lj
I never understood what these do.

\"Blah"\
It always you to do " in strings, It would say: Hey, my name is "Mike"...
SendClientMessage(playerid, COLOR_RED,"\"); = Error.
Reply
#6

pawn Code:
public ReplyToThread
{
SendMessage(userid, COLOR_Steel_Blue,"Oh look, PAWN code.")
}
Reply
#7

Quote:
Originally Posted by ^Lj
I never understood what these do.

\"Blah"\
Code:
SendClientMessage( playerid, color, "Hello, my name is "bob" ");
Doesn't work^,

Code:
SendClientMessage( playerid, color, "Hello, my name is \"bob\" ");
Works
Reply
#8

What does \n do? or is it /n?
Reply
#9

its a part of \n\r > new line
Reply
#10

Ah, ok, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)