[Ajuda] Meu Gm Nгo Abre Na Hora Que Clico em samp-server
#1

A janela do CMD abre, e fecha bem rбpido, nem dб para ler, e meu gm n tem erros quando copilo.

Aqui estб meu Gm iniciante :

pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
//------------------------------------------------------------------------------
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("      Feito Por Lucas Emmanuel");
    print("--------------------------------------\n");
    return 1;
}

#endif

public OnGameModeInit()
{
    SetGameModeText("Battlefield 3");
//------------------------------------------------------------------------------
    AddPlayerClass(287, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
//------------------------------------------------------------------------------
    return 1;
}
//------------------------------------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}
//------------------------------------------------------------------------------
public OnPlayerConnect(playerid) // Mensбgem Quando o Player Entra no Servidor
{
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"%s Entrou No Servidor",pName);
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}
//------------------------------------------------------------------------------
public OnPlayerDisconnect(playerid, reason) // Mensбgem Quando o Player Sai no Servidor
{
    new string[64],
    name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    switch(reason)
    {
        case 0: format(string,sizeof string,"%s Deixou o Servidor. (Timed out)",name);
        case 1: format(string,sizeof string,"%s Deixou o Servidor. (Kicked/Banned)",name);
    }
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}
//------------------------------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        return 1;
    }
    return 0;
}
//------------------------------------------------------------------------------

public OnPlayerPickUpPickup(playerid, pickupid)
{
    return 1;
}


Por que nгo abre ?


OBS : Gm й Pequeno, por que comecei do zero, esse que й o meu novo projeto. Battlefield. e tambйm eu sou iniciante em pawn, e nгo gosto de fazer download de GMs Prontos na Internet, acho isso mф coisa feia.

Esse Gm eu boto o nome de MEU pq eu to criando ele do nada. xD
Reply
#2

Ninguйm ?
Reply
#3

pawn Код:
#include <a_samp>

main()
{
    print("\n--------------------------------------");
    print("      Feito Por Lucas Emmanuel");
    print("--------------------------------------\n");
    return 1;
}

public OnGameModeInit()
{
    SetGameModeText("Battlefield 3");
//------------------------------------------------------------------------------
    AddPlayerClass(287, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
//------------------------------------------------------------------------------
    return 1;
}
//------------------------------------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}
//------------------------------------------------------------------------------
public OnPlayerConnect(playerid) // Mensбgem Quando o Player Entra no Servidor
{
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"%s Entrou No Servidor",pName);
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}
//------------------------------------------------------------------------------
public OnPlayerDisconnect(playerid, reason) // Mensбgem Quando o Player Sai no Servidor
{
    new string[64],
    name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    switch(reason)
    {
        case 0: format(string,sizeof string,"%s Deixou o Servidor. (Timed out)",name);
        case 1: format(string,sizeof string,"%s Deixou o Servidor. (Kicked/Banned)",name);
    }
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}
//------------------------------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        return 1;
    }
    return 0;
}
//------------------------------------------------------------------------------

public OnPlayerPickUpPickup(playerid, pickupid)
{
    return 1;
}
Reply
#4

¬¬ Me ajuda cara й sйrio
Reply
#5

Quote:
Originally Posted by Lucas-Fc
Посмотреть сообщение
¬¬ Me ajuda cara й sйrio
Coloca isso que o Victor Falou, GameMode Nгo tem nada de Filterscript e sim Usa Main no Inicio.
Reply
#6

Mesmo assim, nгo abre ! Clico em Samp-Server, abre a janela na velocidade da luz e fecha '-'

Meu GM ta assim :

pawn Код:
#include <a_samp>

main()
{
    print("\n--------------------------------------");
    print("      Feito Por Lucas Emmanuel");
    print("--------------------------------------\n");
    return 1;
}

public OnGameModeInit()
{
    SetGameModeText("Battlefield 3");
//------------------------------------------------------------------------------
    AddPlayerClass(287, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
//------------------------------------------------------------------------------
    return 1;
}
//------------------------------------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}
//------------------------------------------------------------------------------
public OnPlayerConnect(playerid) // Mensбgem Quando o Player Entra no Servidor
{
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"%s Entrou No Servidor",pName);
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}
//------------------------------------------------------------------------------
public OnPlayerDisconnect(playerid, reason) // Mensбgem Quando o Player Sai no Servidor
{
    new string[64],
    name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    switch(reason)
    {
        case 0: format(string,sizeof string,"%s Deixou o Servidor. (Timed out)",name);
        case 1: format(string,sizeof string,"%s Deixou o Servidor. (Kicked/Banned)",name);
    }
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}
//------------------------------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        return 1;
    }
    return 0;
}
//------------------------------------------------------------------------------

public OnPlayerPickUpPickup(playerid, pickupid)
{
    return 1;
}
Reply
#7

AFF GALERA, o nome do GM tava escrito errado no Arquivo do samp KKKKKKKKKKKKKKKKK foi malz '-'
Reply
#8

Posta as ultimas coisas do server.log.
Reply
#9

Presta atenзгo, antes de fazer um tуpico.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)