stranger chat help for /mask - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: stranger chat help for /mask (
/showthread.php?tid=347097)
stranger chat help for /mask -
Evation - 31.05.2012
code;
Код:
if(PlayerInfo[playerid][pMasked] == 1)
{
new string[128];
format(string, sizeof(string)," Stranger: \%s\ ", text); // this is the error line
SendClientMessage(playerid, COLOR_WHITE, string);
return 0;
}
return 1;
}
errors;
Код:
C:\Users\Nathan\Desktop\Evation RP\Evation RP\gamemodes\ERP.pwn(70302) : error 027: invalid character constant
C:\Users\Nathan\Desktop\Evation RP\Evation RP\gamemodes\ERP.pwn(70302) : error 027: invalid character constant
new error, when players speak ingame it doesn't show the other players.
Re: stranger chat help for /mask -
JaKe Elite - 31.05.2012
pawn Код:
format(string, sizeof(string)," Stranger: \%s\ ", text);
to
pawn Код:
format(string, sizeof(string)," Stranger: %s ", text);
Re: stranger chat help for /mask -
Evation - 31.05.2012
thankyou.
Re: stranger chat help for /mask -
Evation - 31.05.2012
new error, when players speak ingame it doesn't show the other players.
Re: stranger chat help for /mask -
MadeMan - 31.05.2012
Show the code when not using /mask
Re: stranger chat help for /mask -
Evation - 01.06.2012
what is that?
idk where it is.
Re: stranger chat help for /mask -
MadeMan - 01.06.2012
Quote:
Originally Posted by Evation
code;
Код:
if(PlayerInfo[playerid][pMasked] == 1)
{
new string[128];
format(string, sizeof(string)," Stranger: \%s\ ", text); // this is the error line
SendClientMessage(playerid, COLOR_WHITE, string);
return 0;
}
return 1;
}
|
This is the code for /mask chat, but do you have a normal chat also?
Re: stranger chat help for /mask -
Evation - 01.06.2012
umm no.
Re: stranger chat help for /mask -
Sandiel - 01.06.2012
Код:
if(PlayerInfo[playerid][pMasked] == 1)
{
new string[128];
format(string, sizeof(string),"Stranger: %s ", text);
SendLocalMessage(playerid, string, 10.0, COLOR_WHITE, COLOR_WHITE);
return 0;
}
return 1;
}
Stock SendLocalMessage somewhere in your script, search for it on forums...
SendClientMessage only sends the message to a SPECIFIC player, not players in range of the playerid
+rep if I helped you
Re: stranger chat help for /mask -
Evation - 01.06.2012
ill test that now