20.12.2012, 00:03
Vlw, +REP.
@EDIT:
Aproventirando o tуpico:
Quando eu ligo o servidor, ocorre um erro no console,
O gm:
@EDIT:
Aproventirando o tуpico:
Quando eu ligo o servidor, ocorre um erro no console,
PHP код:
Script[gamemodes/sv.amx]: Run time error 20: "Invalid index parameter <bad entry point>"
PHP код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
/* New's GameMode Mata-Mata */
new gString[1024];
/* Cores */
#define preto 0x000000FF
#define red 0xFF0000FF
#define azul 0x0000FFFF
#define rosa 0xFF00FFFF
#define verde 0x00FF00FF
#define amarelo 0xFFFF00FF
public OnGameModeInit()
{
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
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)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
CMD:comandos(playerid, params[])
{
new MessageBox[1000];
format(gString, sizeof(gString), "{00EEFF}[Brasil]Mata-Mata 2013!!Uma Nova Era\n\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/AUTOREPARAR{FFFFFF} - este comando й para reparar a carro todo hora que bater\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/TELES{FFFFFF} - Para ver todos os teleportes\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/CV{FFFFFF} - este comando й para vc criar carros\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/PM [ID DO JOGADOR] [MENSAGEM]{FFFFFF} - Para enviar uma Mensagem Privada\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/PROPS{FFFFFF} - Para ver os comandos de propriedades\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/NEON{FFFFFF} - Para colocar neon no seu veнculo\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/BANDANA{FFFFFF} - Para colocar uma bandana na sua skin\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/CORES {FFFFFF} - Para trocar a cor do seu nick\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/KILL{FFFFFF} - Para se matar\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/CCT {FFFFFF} - Para comprar colete ,Custa $3.000\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/CVIDA{FFFFFF} - Para comprar vida, Custa $3.000\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/LINKS{FFFFFF} - para ver o forum oficial do servidor\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/MENUSKIN{FFFFFF} - Para voltar a selecionar skin\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/ANIMES{FFFFFF} - Para ver os animes\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/TRANCAR & /DESTRANCAR{FFFFFF} - Para proteger veiculos\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/TRANSFERIR [ID] [QUANTIA]{FFFFFF} - Para enviar grana para alguem\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/TUNAR{FFFFFF} - para tunar seus veiculos\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/GCMDS{FFFFFF} - Para criar sua gang\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/KITS{FFFFFF} - Para comprar seus armamentos e ver a lista de armas\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/SEXO{FFFFFF} - Para ver os comandos de sexo\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/INFOS{FFFFFF} - Para saber mais sobre o servidor\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/MUDARLUTA{FFFFFF} - para trocar estilo de luta\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/PLANOSADMIN{FFFFFF} - Para ver os planos de compra de adm\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/MINHACONTA{FFFFFF} - Para ver comandos de sua conta\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/FOGUETE{FFFFFF} - Para soltar foguetes, custa $700\n"); strcat(MessageBox, gString);
format(gString, sizeof(gString), "{6F00DD}/SOUGAY{FFFFFF} - este comando й bem legal vc vai rir muinto com ele\n"); strcat(MessageBox, gString);
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "Comandos do servidor", MessageBox, "Fechar", "");
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
{
SendClientMessage(playerid, -1, "O comando nгo existe, digite /comandos ou /ajuda para mais detalhes.");
}
return true;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}