some publics - 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: some publics (
/showthread.php?tid=376084)
some publics -
Windrush - 09.09.2012
pawn Код:
public MessageToAdmins(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
if(AccInfo[i][Level] >= 1) && (AccInfo[i][Level] <= 3)
{
SendClientMessage(i, color, string);
}
}
return 1;
}
public MessageToAdmins1(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
if(AccInfo[i][Level] >= 4){
SendClientMessage(i, color, string); }
}
return 1;
}
pawn Код:
C:\Users\carlo\Desktop\SA-MP Server\RolePlay\gamemodes\SATDM_v11.pwn(24638) : error 029: invalid expression, assumed zero
C:\Users\carlo\Desktop\SA-MP Server\RolePlay\gamemodes\SATDM_v11.pwn(24638 -- 24640) : error 001: expected token: "}", but found ";"
C:\Users\carlo\Desktop\SA-MP Server\RolePlay\gamemodes\SATDM_v11.pwn(24643) : error 010: invalid function or declaration
reping on
Re: some publics -
[MM]RoXoR[FS] - 09.09.2012
pawn Код:
public MessageToAdmins(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
if((AccInfo[i][Level] >= 1) && (AccInfo[i][Level] <= 3))
SendClientMessage(i, color, string);
}
return 1;
}
public MessageToAdmins1(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
if(AccInfo[i][Level] >= 4)
SendClientMessage(i, color, string);
}
return 1;
}
Re: some publics -
[HK]Ryder[AN] - 09.09.2012
I guess this will work
pawn Код:
public MessageToAdmins(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1){
if(AccInfo[i][Level] >= 1) && (AccInfo[i][Level] <= 3)
{
SendClientMessage(i, color, string);
}
}
}
return 1;
}
public MessageToAdmins1(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
{
if(AccInfo[i][Level] >= 4)
{
SendClientMessage(i, color, string);
}
}
}
return 1;
}
Re: some publics -
Windrush - 09.09.2012
Tnx Rep+