helpchat is not working, - 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: helpchat is not working, (
/showthread.php?tid=562503)
helpchat is not working, -
lulo356 - 09.02.2015
pawn Код:
CMD:helpchat(playerid, params[])
{
static
userid;
if(ahelpchat[playerid] == 0)
return SendErrorMessage(playerid, "You are not in a chat with an staff member");
if(ahelpchat[playerid] == 1)
if(isnull(params))
return SendSyntaxMessage(playerid, "/helpchat[text]");
SendClientMessageEx(userid, COLOR_YELLOW, "(( HelpChat: %s: %s ))", ReturnName(playerid), params);
SendClientMessageEx(playerid, COLOR_YELLOW, "(( HelpChat: %s: %s ))", ReturnName(userid), params);
return 1;
}
Thats what i created for an helpme that the player can talk to an staff member, but the problem is its not taking the right names, and the parmas is not showing to eachother,