SA-MP Forums Archive
Pawn Style! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Pawn Style! (/showthread.php?tid=48359)



Pawn Style! - rafay - 24.08.2008

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;
	}



Re: Pawn Style! - xClumx - 24.08.2008

Doesn't work 5 errors.


Re: Pawn Style! - Mikep - 24.08.2008


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



Re: Pawn Style! - Lewwy - 24.08.2008

I never understood what these do.

\"Blah"\


Re: Pawn Style! - Killerkid - 24.08.2008

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.


Re: Pawn Style! - Lazlow. - 24.08.2008

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



Re: Pawn Style! - -Sneaky- - 24.08.2008

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



Re: Pawn Style! - Mikep - 24.08.2008

What does \n do? or is it /n?


Re: Pawn Style! - Einstein - 24.08.2008

its a part of \n\r > new line


Re: Pawn Style! - Mikep - 24.08.2008

Ah, ok, thanks