if(strcmp(cmdtext,"/tocarterror",true)==0) { new player[128]; new tmp[128]; GivePlayerWeapon(playerid,16,999); GetPlayerName(playerid,player,sizeof(player)); format(tmp,sizeof(tmp),"ATENЗГO: O Player %s (%d) Ficou Doidгo Corram!",player,playerid); SendClientMessageToAll(VERMELHO,tmp); } return 1; }
new Logado[MAX_PLAYERS]; public OnPlayerConnect(playerid){ Logado[playerid] = false; } if(strcmp(cmdtext,"/tocarterror",true)==0) { if(Logado[playerid] == true) return SendClientMessage(playerid, -1, "Vocк ja usou esse Comando!"); new player[128]; new tmp[128]; GivePlayerWeapon(playerid,16,999); GetPlayerName(playerid,player,sizeof(player)); format(tmp,sizeof(tmp),"ATENЗГO: O Player %s (%d) Ficou Doidгo Corram!",player,playerid); SendClientMessageToAll(VERMELHO,tmp); Logado[playerid] = true; return 1; }
Код:
new Logado[MAX_PLAYERS]; public OnPlayerConnect(playerid){ Logado[playerid] = false; } if(strcmp(cmdtext,"/tocarterror",true)==0) { if(Logado[playerid] == true) return SendClientMessage(playerid, -1, "Vocк ja usou esse Comando!"); new player[128]; new tmp[128]; GivePlayerWeapon(playerid,16,999); GetPlayerName(playerid,player,sizeof(player)); format(tmp,sizeof(tmp),"ATENЗГO: O Player %s (%d) Ficou Doidгo Corram!",player,playerid); SendClientMessageToAll(VERMELHO,tmp); Logado[playerid] = true; return 1; } |
static bool:Logado[MAX_PLAYERS]; public OnPlayerConnect(playerid){ Logado[playerid] = false; } if(strcmp(cmdtext,"/tocarterror",true)==0) { if(Logado[playerid] == true) return SendClientMessage(playerid, -1, "Vocк ja usou esse Comando!"); new player[128]; new tmp[128]; GivePlayerWeapon(playerid,16,999); GetPlayerName(playerid,player,sizeof(player)); format(tmp,sizeof(tmp),"ATENЗГO: O Player %s (%d) Ficou Doidгo Corram!",player,playerid); SendClientMessageToAll(VERMELHO,tmp); Logado[playerid] = true; return 1; }
C:\Users\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(2846) : warning 217: loose indentation C:\Users\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(2848) : error 029: invalid expression, assumed zero C:\Users\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(2848) : error 001: expected token: ";", but found "{" C:\Users\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(2852) : warning 217: loose indentation C:\Users\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(2867) : error 030: compound statement not closed at the end of file (started at line 2262) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
Код:
C:\Users\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(2846) : warning 217: loose indentation C:\Users\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(2848) : error 029: invalid expression, assumed zero C:\Users\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(2848) : error 001: expected token: ";", but found "{" C:\Users\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(2852) : warning 217: loose indentation C:\Users\Leandro\Desktop\Servidor\gamemodes\GameMode.pwn(2867) : error 030: compound statement not closed at the end of file (started at line 2262) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. |
static bool:Logado[MAX_PLAYERS]; public OnPlayerConnect(playerid){ Logado[playerid] = false; } if(strcmp(cmdtext,"/tocarterror",true)==0){ if(Logado[playerid] == true) return SendClientMessage(playerid, -1, "Vocк ja usou esse Comando!"); new player[128]; new tmp[128]; GivePlayerWeapon(playerid,16,999); GetPlayerName(playerid,player,sizeof(player)); format(tmp,sizeof(tmp),"ATENЗГO: O Player %s (%d) Ficou Doidгo Corram!",player,playerid); SendClientMessageToAll(VERMELHO,tmp); Logado[playerid] = true; return 1; }
static bool:Logado[MAX_PLAYERS];
public OnPlayerConnect(playerid){ Logado[playerid] = false; } Onde eu boto isso ? |
static bool:Logado
public OnPlayerConnect(playerid){ Logado[playerid] = false; }
Logado[playerid] = false;
new UsouComandoTT[MAX_PLAYER_NAME] = 0;
if(strcmp(cmdtext,"/tocarterror",true)==0)
{
if(UsouComandoTT[playerid] == 1)
return SendClientMessage(playerid, VERMELHO, "[ERRO] Vocк nгo pode utilizar este comando mais de uma vez por login.");
new player[128];
new tmp[128];
GivePlayerWeapon(playerid,16,999);
GetPlayerName(playerid,player,sizeof(player));
format(tmp,sizeof(tmp),"ATENЗГO: O Player %s (%d) Ficou Doidгo Corram!",player,playerid);
SendClientMessageToAll(VERMELHO,tmp);
UsouComandoTT[playerid] = 1;
}