public RTi() { for(new i; i<MAX_PLAYERS; i++){ if(IsPlayerConnected(i) && IsPlayerAdmin(i)){ if(LoggedRcon[i] == 0){ //new tmp[256],PName[16]; new string[85],PName[24]; GetPlayerName(i,PName,24); format(string,sizeof(string),"%s se logou com RCON ",PName); //GetPlayerName(playerid, PName, sizeof(PName)); //format(String, sizeof(String), "%s se logou com RCON no ", PName); //GetPlayerName(i,PName,16); //format(tmp,256,"%s se logou com RCON™",PName); SendClientMessageToAll(COR_BRANCO ,string); LoggedRcon[i]=1; } } } } |
Originally Posted by dayvson123
Bom queria que me ajudassem nesse comando:
Quote:
Como resolver? |
if(LoggedRcon[i] == 0){
if(IsPlayerAdmin){
forward RTi();
public RTi()
{
for(new i; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i) && IsPlayerAdmin(i)){
if(IsPlayerAdmin){
//new tmp[256],PName[16];
new string[85],PName[24];
GetPlayerName(i,PName,24);
format(string,sizeof(string),"%s se logou com RCON ",PName);
//GetPlayerName(playerid, PName, sizeof(PName));
//format(String, sizeof(String), "%s se logou com RCON no ", PName);
//GetPlayerName(i,PName,16);
//format(tmp,256,"%s se logou com RCON™",PName);
SendClientMessageToAll(COR_BRANCO ,string);
LoggedRcon=1;
}
}
}
}
C:\Program Files\Rockstar Games\Gta san Andreas\server\gamemodes\VLC.pwn(47389) : error 076: syntax error in the expression, or invalid function call C:\Program Files\Rockstar Games\Gta san Andreas\server\gamemodes\VLC.pwn(47389) : error 017: undefined symbol "LoggedRcon" C:\Program Files\Rockstar Games\Gta san Andreas\server\gamemodes\VLC.pwn(47379) : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. |
public RTi() { for(new i; i<MAX_PLAYERS; i++){ if(IsPlayerConnected(i) && IsPlayerAdmin(i)){ if(IsPlayerAdmin){// 47379 //new tmp[256],PName[16]; new string[85],PName[24]; GetPlayerName(i,PName,24); format(string,sizeof(string),"%s se logou com RCON ",PName); //GetPlayerName(playerid, PName, sizeof(PName)); //format(String, sizeof(String), "%s se logou com RCON no ", PName); //GetPlayerName(i,PName,16); //format(tmp,256,"%s se logou com RCON™",PName); SendClientMessageToAll(COLOR_RED ,string); LoggedRcon=1;//Linha 47389 } } } } |
Originally Posted by Raze_Man
Quote:
|
new LoggedRcon[MAX_PLAYERS]; |
forward RTi(); |
public RTi() { for(new i; i<MAX_PLAYERS; i++){ if(IsPlayerConnected(i) && IsPlayerAdmin(i)){ if(LoggedRcon[i] == 0){ //new tmp[256],PName[16]; new string[85],PName[24]; GetPlayerName(i,PName,24); format(string,sizeof(string),"%s se logou com RCON",PName); //GetPlayerName(playerid, PName, sizeof(PName)); //format(String, sizeof(String), "%s se logou com RCON", PName); //GetPlayerName(i,PName,16); //format(tmp,256,"%s se logou com RCON",PName); SendClientMessageToAll(COR_BRANCO ,string); LoggedRcon[i]=1; } } } } |