Meu Gm Nгo Abre Na Hora Que Clico em samp-server -
Lucas-Fc - 22.09.2012
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
Re: Meu Gm Nгo Abre Na Hora Que Clico em samp-server -
Lucas-Fc - 22.09.2012
Ninguйm ?
Re: Meu Gm Nгo Abre Na Hora Que Clico em samp-server -
Victor' - 22.09.2012
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;
}
Re: Meu Gm Nгo Abre Na Hora Que Clico em samp-server -
Lucas-Fc - 22.09.2012
¬¬ Me ajuda cara й sйrio
Re: Meu Gm Nгo Abre Na Hora Que Clico em samp-server -
.FuneraL. - 22.09.2012
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.
Re: Meu Gm Nгo Abre Na Hora Que Clico em samp-server -
Lucas-Fc - 22.09.2012
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;
}
Re: Meu Gm Nгo Abre Na Hora Que Clico em samp-server -
Lucas-Fc - 22.09.2012
AFF GALERA, o nome do GM tava escrito errado no Arquivo do samp KKKKKKKKKKKKKKKKK foi malz '-'
Re: Meu Gm Nгo Abre Na Hora Que Clico em samp-server -
@Riichard - 22.09.2012
Posta as ultimas coisas do server.log.
Re: Meu Gm Nгo Abre Na Hora Que Clico em samp-server -
dEvasT._ - 22.09.2012
Presta atenзгo, antes de fazer um tуpico.