public OnPlayerConnect(playerid) { new plname[MAX_PLAYER_NAME]; GetPlayerName(playerid, plname, sizeof(plname)); if(Security != 0) { SendClientMessage(playerid, COLOR_RED, " %s quebrou uma das regras de acordo, a aзгo foi tomada."); Kick(playerid); return 1; } new namestring = strfind(plname, "_", true); if(namestring == -1) { SendClientMessage(playerid, COLOR_RED, "Departamento de imigraзгo: Seu nome nгo й aceitбvel."); SendClientMessage(playerid, COLOR_RED, "Dica: Seu nome deve estar no formato Firstname_Lastname."); Kick(playerid); return 1; } |
public OnPlayerConnect(playerid)
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s has joined the server. Welcome!",pName);
SendClientMessageToAll(0xFFFFFFAA,string);
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0)
{
SendClientMessage(playerid, COLOR_RED, " %s quebrou uma das regras de acordo, a aзгo foi tomada.");
Kick(playerid);
return 1;
}
new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_RED, "Departamento de imigraзгo: Seu nome nгo й aceitбvel.");
SendClientMessage(playerid, COLOR_RED, "Dica: Seu nome deve estar no formato Firstname_Lastname.");
Kick(playerid);
return 1;
}
C:\Users\Ricardo Moreira\Desktop\RC4-1 Server\gamemodes\RPNossaComunidade.pwn(2673) : error 021: symbol already defined: "string" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
new string[MAX_PLAYER_NAME]; |
public OnPlayerConnect(playerid)
{
new tu[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(tu,sizeof tu,"%s has joined the server. Welcome!",pName);
SendClientMessageToAll(0xFFFFFFAA,tu);
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
if(Security != 0)
{
SendClientMessage(playerid, COLOR_RED, " %s quebrou uma das regras de acordo, a aзгo foi tomada.");
Kick(playerid);
return 1;
}
new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_RED, "Departamento de imigraзгo: Seu nome nгo й aceitбvel.");
SendClientMessage(playerid, COLOR_RED, "Dica: Seu nome deve estar no formato Firstname_Lastname.");
Kick(playerid);
return 1;
}
C:\Users\Ricardo Moreira\Desktop\RC4-1 Server\gamemodes\RPNossaComunidade.pwn(2652) : error 017: undefined symbol "string" C:\Users\Ricardo Moreira\Desktop\RC4-1 Server\gamemodes\RPNossaComunidade.pwn(2652) : error 017: undefined symbol "string" C:\Users\Ricardo Moreira\Desktop\RC4-1 Server\gamemodes\RPNossaComunidade.pwn(2653) : error 017: undefined symbol "string" C:\Users\Ricardo Moreira\Desktop\RC4-1 Server\gamemodes\RPNossaComunidade.pwn(2650) : warning 204: symbol is assigned a value that is never used: "tu" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. |
format(string,sizeof string,"%s juntou-se ao servidor.",pName); |
SendClientMessageToAll(0xFFFFFFAA,string); |
new tu[128], pName[MAX_PLAYER_NAME]; |
C:\Users\Ricardo Moreira\Desktop\RC4-1 Server\gamemodes\RPNossaComunidade.pwn(2673) : error 021: symbol already defined: "string" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
new string[MAX_PLAYER_NAME]; |