what wrong here ????? - 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: what wrong here ????? (
/showthread.php?tid=157603)
what wrong here ????? -
iJumbo - 07.07.2010
pawn Код:
stock SendMessageToClan(COLOR,text[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(GetPlayerClanLevel = 100)
{
SendClientMessage(playerid,COLOR,text);
}
}
}
return 1;
}
:/
Re: what wrong here ????? -
Hiddos - 07.07.2010
pawn Код:
if(GetPlayerClanLevel(i) == 100)
Re: what wrong here ????? -
iJumbo - 07.07.2010
noo this is not a problem i solve it is SendClientMessage(i,COLOR,text); not SendClientMessage(playerid,COLOR,text); xD sorry