How to sendclientmessagetoall - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to sendclientmessagetoall (
/showthread.php?tid=136820)
How to sendclientmessagetoall -
cozza123456 - 26.03.2010
How can i make this work?
Код:
{
SendClientMessage(playerid,RED,"Your account is registered. You must first login in order to spawn.");
printf("%s is trying to spawn but hasn't logged in!", sendername);
SentClientMessageToAll(ADMIN_RED, "%s is trying to spawn but hasn't logged in!");
return 0;
}
This line crashes server:
Код:
SentClientMessageToAll(ADMIN_RED, "%s is trying to spawn but hasn't logged in!");
Re: How to sendclientmessagetoall -
Crezy-Boy - 26.03.2010
You tried return 1; ?
Re: How to sendclientmessagetoall -
MadeMan - 26.03.2010
pawn Код:
{
SendClientMessage(playerid,RED,"Your account is registered. You must first login in order to spawn.");
printf("%s is trying to spawn but hasn't logged in!", sendername);
new msg[128];
format(msg, sizeof(msg), "%s is trying to spawn but hasn't logged in!", sendername);
SentClientMessageToAll(ADMIN_RED, msg);
return 0;
}
Re: How to sendclientmessagetoall -
cozza123456 - 26.03.2010
oops i meant sendclientmessagetoall not sent xD thanks
Re: How to sendclientmessagetoall -
gotenks918 - 26.03.2010
sent wasn't the probelm. You needed to format the string before you could send it out.
Re: How to sendclientmessagetoall -
cozza123456 - 26.03.2010
i know.. im just saying.
Re: How to sendclientmessagetoall -
cozza123456 - 26.03.2010
I am a newb, leave me be.