OnPlayerConnect dont work... why? :c
#6

I didn't realize that you were trying to print the message text, you should use printf.
pawn Код:
public OnPlayerConnect(playerid)
{
    GameTextForPlayer(playerid,"~g~~h~.::ASSHOLE::.",3000,0);
    SendClientMessage(playerid,COLOR_BLANCO,"Bienvenido a {3ADF00}.::ASSHOLE::.");
    SetPlayerColor(playerid,COLOR_BLANCO);
    new mensaje[128], nombre[24];
    format(mensaje,128,"%s se ha conectado al servidor!",nombre);
    SendClientMessageToAll(COLOR_TEJA,mensaje);
    //---------- OTROS ----------
    estado[playerid] = true;
    printf("%s", mensaje);
    return 1;
}
Just to clarify on what error you are having, when someone connects to your server does the gametext or client message, and the "nombre se ha conectado al servidor!" messages show up? Or you just want the print(); line to work right?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)