, queria saber como faзo pra quando o player logar aparecer a frase if(PlayerInfo[playerid][Sexo] == Masculino)
{
PlayerInfo[playerid][Logado] = true;
format( strr, sizeof(strr), "O Jogador {03F2FF}%s {FFFFFF}| id: {03F2FF}%d {FFFFFF}estб {03F2FF}conectado.", pnome, pID);
SendClientMessageToAll( 0xFFFFFFFF, strr);
return 1;
}
if(PlayerInfo[playerid][Sexo] == Feminino)
{
PlayerInfo[playerid][Logado] = true;
format( strr, sizeof(strr), "A jogadora {03F2FF}%s {FFFFFF}| id: {03F2FF}%d {FFFFFF}estб {03F2FF}conectada.", pnome, pID);
SendClientMessageToAll( 0xFFFFFFFF, strr);
return 1;
}

PlayerInfo[playerid][Logado] = true;
if(PlayerInfo[playerid][Sexo] == Masculino)
{
format( strr, sizeof(strr), "O Jogador {03F2FF}%s {FFFFFF}| id: {03F2FF}%d {FFFFFF}estб {03F2FF}conectado.", pnome, pID);
}
else
{
format( strr, sizeof(strr), "A jogadora {03F2FF}%s {FFFFFF}| id: {03F2FF}%d {FFFFFF}estб {03F2FF}conectada.", pnome, pID);
}
SendClientMessageToAll( 0xFFFFFFFF, strr);
new masculino[MAX_PLAYERS] ;
New feminino[MAX_PLAYERS] ;
|
PHP код:
|
new str[256];
if(PlayerInfo[playerid][Sexo] == Masculino)
{
format(str, sizeof(str), "O Jogador {03F2FF}%s {FFFFFF}| id: {03F2FF}%d {FFFFFF}estб {03F2FF}conectado.", Nome, playerid);
}
else
{
format(str, sizeof(str), "A jogadora {03F2FF}%s {FFFFFF}| id: {03F2FF}%d {FFFFFF}estб {03F2FF}conectada.", Nome, playerid);
}
SendClientMessageToAll( 0xFFFFFFFF, str);
return 1;
}
C:\Users\Robson\Desktop\Nova pasta\gamemodes\Gamemode.pwn(121) : error 076: syntax error in the expression, or invalid function call C:\Users\Robson\Desktop\Nova pasta\gamemodes\Gamemode.pwn(125) : error 076: syntax error in the expression, or invalid function call Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.