Szerző Téma: samp-server.exe konzol hibát ír  (Megtekintve 640 alkalommal)

samp-server.exe konzol hibát ír
« Dátum: 2012. március 28. - 17:09:29 »
0 Show voters
Hali.
Csináltam egy új módot és a konzolba ezt adja ki:  :tantrum:
 
[17:06:59] Script[gamemodes/POLICE.amx]: Run time error 17: \"Invalid/unsupported P-code file format\"
[17:06:59] Failed to load \'gamemodes/POLICE.amx\' script.

samp-server.exe konzol hibát ír
« Válasz #1 Dátum: 2012. március 28. - 17:12:58 »
+1 Show voters
Vagy main maradt ki belõle v recompile minden.

samp-server.exe konzol hibát ír
« Válasz #2 Dátum: 2012. március 28. - 17:14:32 »
0 Show voters
Az mi? :D

Dupla hozzászólás automatikusan összefûzve. ( 2012. március 28. - 17:15:18 )

Itt a mód amit elkezdtem hátha megtod csinálni :D
 
#include <a_samp>
#include <zcmd>
#include <fixchars.h>
#include <sscanf>
#include <IsPlayerLAdmin>
#pragma tabsize 0
new Text:textdraw;
new bool:ittas[MAX_PLAYERS];
forward borido(playerid);
new gTeam[MAX_PLAYERS];
#define RENDOR  0
#define CIVIL   1
#define FEHER   0xFFFFFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_GREEN 0x33FF33AA
#define hiba    0xFF0000AA
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,\"~y~]~b~ELIT MAGYAR RENDÕRSÉG~y~]\",5000,4);
       SendClientMessage(playerid, -1, \"{00bbff}Érdemes spawnolás után jogosítványt,fegyverengedélyt és repengedélyt venni!\");
SendClientMessage(playerid, -1,  \"{ffffff}Üdvözöllek a {00bbff}[H][N] <[>{ffff00}Elit Magyar Rendõrség{00bbff}<]> [H][N] {ffffff}szerveren.\");
PlayAudioStreamForPlayer(playerid, \"http://webvilagserver1.jatekoldal.net/udvozollek.ogg\");
TextDrawShowForPlayer(playerid, textdraw);
        return 1;
}
        new engine,lights,alarm,doors,bonnet,boot,objective;
        CMD:motorbe(playerid, params[])
{
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
}
    return 1;
}
CMD:motorki(playerid, params[])
{
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
}
    return 1;
}
CMD:csmgki(playerid, params[])
{
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
}
    return 1;
}
CMD:csmgbe(playerid, params[])
{
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
}
    return 1;
}
CMD:mki(playerid, params[])
{
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
}
    return 1;
}
CMD:mbe(playerid, params[])
{
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
}
    return 1;
}
CMD:lámpafel(playerid, params[])
{
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
}
    return 1;
}
CMD:lámpale(playerid, params[])
{
        new vid = GetPlayerVehicleID(playerid);
     if(vid != INVALID_VEHICLE_ID) {
         GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
         SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
}
    return 1;
}
       
CMD:civilhelp(playerid, params[])
{
SendClientMessage(playerid, -1, \"Tudsz ATM-et rabolni!\");
SendClientMessage(playerid, -1, \"Tudsz Bankokat rabolni!\");
return 1;
}
CMD:i(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /i [playerid]\");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");
               if(IsPlayerLAdmin(playerid))
        {
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
new illeto[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, illeto, sizeof(illeto));
format(string, sizeof string, \"{ffffff}[RENDÕR,%s]:{00bbff} Kérem álljon félre {b22222}%s, {00bbff}igazoltatás!\",name, illeto);
SendClientMessageToAll(0x00ff1eAA,string);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
CMD:p(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /p [playerid]\");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");
               if(IsPlayerLAdmin(playerid))
        {
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
new illeto[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, illeto, sizeof(illeto));
format(string, sizeof string, \"{ffffff}[RENDÕR,%s]:{00bbff} %s papírokat kérnék! {b22222}[[/jogsimutat %s]]\",name, illeto, name, name);
SendClientMessageToAll(0x00ff1eAA,string);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
CMD:a1(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /a1 [playerid]\");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");
               if(IsPlayerLAdmin(playerid))
        {
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
new illeto[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, illeto, sizeof(illeto));
format(string, sizeof string, \"{ffffff}[RENDÕR,%s]: {b22222}%s ! {00bbff}Itt a rendõrség, álljon meg!\",name, illeto);
SendClientMessageToAll(0x00ff1eAA,string);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
CMD:a2(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /a2 [playerid]\");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");
               if(IsPlayerLAdmin(playerid))
        {
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
new illeto[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, illeto, sizeof(illeto));
format(string, sizeof string, \"{ffffff}[RENDÕR,%s]: {b22222}%s ! {00bbff}Ha nem áll meg kénytelenek leszünk tüzet nyitni!\",name, illeto);
SendClientMessageToAll(0x00ff1eAA,string);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
CMD:a3(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /a3 [playerid]\");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");
               if(IsPlayerLAdmin(playerid))
        {
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
new illeto[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, illeto, sizeof(illeto));
format(string, sizeof string, \"{ffffff}[RENDÕR,%s]: {b22222}%s ! {00bbff}Utolsó figyelmeztetés! Ha nem áll meg tüzelünk!\",name, illeto);
SendClientMessageToAll(0x00ff1eAA,string);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
CMD:szl(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /szl [playerid]\");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");
               if(IsPlayerLAdmin(playerid))
        {
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
new illeto[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, illeto, sizeof(illeto));
format(string, sizeof string, \"{ffffff}[RENDÕR,%s]:{00bbff} Itt a rendõrség, szálljon ki/le {b22222}%s!\",name, illeto);
SendClientMessageToAll(0x00ff1eAA,string);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
CMD:szonda(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /szonda [playerid]\");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");
               if(IsPlayerLAdmin(playerid))
        {
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
new illeto[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, illeto, sizeof(illeto));
format(string, sizeof string, \"{ffffff}[RENDÕR,%s]:{00bbff} Kérem fújjon bele a szondába %s! {b22222}[[/fuj]]\",name, illeto);
SendClientMessageToAll(0x00ff1eAA,string);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
CMD:bor(playerid, params[])
{
ittas[playerid] = true;
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_WINE);
SetTimer(\"borido\", 60000*10, false);
    SendClientMessage(playerid,0x00ff33AA,\"Úgydöntöttél iszol egy üveg bort!\");
return 1;
}
public borido(playerid)
{
ittas[playerid] = false;
    SendClientMessage(playerid,0x00ff33AA,\"Kiürült az alkohol a szervezetedbõl!\");
}
CMD:fuj(playerid, params[])
{
if(ittas[playerid] == true)
{
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof string, \"%s belefújt a szondába. Eredménye: {b22222}Ittas\", name);
SendClientMessageToAll(0xfff200AA,string);
}
else
{
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof string, \"%s belefújt a szondába. Eredménye: {00ff00}Tiszta\", name);
SendClientMessageToAll(0xfff200AA,string);
}
return 1;
}
CMD:bilincs(playerid, params[])
{
if(IsPlayerLAdmin(playerid))
{
        new giveplayerid, string[128], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];
if (sscanf(params, \"u\", giveplayerid)) SendClientMessage(playerid, 0xFF0000FF, \"Használat: /bilincs  <playerid>\");
else if (giveplayerid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000FF, \"Hiba: Nincs ilyen játékos!\");
else{
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(giveplayerid, name2, sizeof(name2));
format(string, sizeof string, \"{ffffff}[RENDÕR,%s]:{00bbff} Megbilincselte {b22222}%s-t!\", name, name2);
        SendClientMessageToAll(0xB3D5B2AA,string);
        TogglePlayerControllable(giveplayerid,0);
        }
}
    return 1;
}
CMD:levesz(playerid, params[])
{
if(IsPlayerLAdmin(playerid))
{
        new giveplayerid, string[128], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];
       if (sscanf(params, \"u\", giveplayerid)) SendClientMessage(playerid, 0xFF0000FF, \"Használat: /levesz <playerid>\");
else if (giveplayerid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000FF, \"Hiba: Nincs ilyen játékos!\");
else{
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(giveplayerid, name2, sizeof(name2));
format(string, sizeof string, \"{ffffff}[RENDÕR,%s]:{00bbff} Levette a bilincset {b22222}%s{00bbff}-ról/rõl.\", name,name2);
        SendClientMessageToAll(0xFF0000FF,string);
        TogglePlayerControllable(giveplayerid,1);
          }
}
             return 1;
}
CMD:lecsuk(playerid, params[])
{
if(IsPlayerLAdmin(playerid))
{
new giveplayerid, ido, indok[128], string[128], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];
if(sscanf(params, \"uds\", giveplayerid, ido, indok)) return SendClientMessage(playerid, 0xFF0000FF, \"Használat: /lecsuk [playerid] [perc] [indok]\");
if(!IsPlayerConnected(giveplayerid) || 0 > giveplayerid || giveplayerid > MAX_PLAYERS) return SendClientMessage(playerid, 0xFF0000FF, \"Hiba: Nincs ilyen játékos!\");
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(giveplayerid, name2, sizeof(name2));
format(string, sizeof string, \"{ffffff}[RENDÕR,%s]:{00bbff} Börtönbe zárta %s -t {b22222}[[Perc: %d]] [[indok: %s]]\", name, name2, ido, indok);
SendClientMessageToAll(0xB3D5B2AA,string);
ido *= 60000;
SetTimerEx(\"Bortonido\",ido,false,\"d\",giveplayerid);
SetPlayerPos(giveplayerid,640.2585,532.2685,3.9968);
SetPlayerInterior(giveplayerid, 0);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
forward Bortonido(playerid);
public Bortonido(playerid)
{
SpawnPlayer(playerid);
return 1;
}
CMD:rabol(playerid, params[])
{
     if(GetPVarInt(playerid,\"rabol\")==1)
      {
      SendClientMessage(playerid,hiba,\"Már raboltál! 5 perc múlva újra rabolhatsz!\");
      }
      if(GetPVarInt(playerid,\"rabol\")==0)
      {
      if(IsPlayerInRangeOfPoint(playerid,1.0,2023.5, 997.79998779297, 10.5) || IsPlayerInRangeOfPoint(playerid,1.0, 2239, 1283.5, 10.5) || IsPlayerInRangeOfPoint(playerid,1.0, 2090.5, 1458.9000244141, 10.5) || IsPlayerInRangeOfPoint(playerid,1.0,2196.8999023438, 1680.8000488281, 12) || IsPlayerInRangeOfPoint(playerid,1.0,2224.6999511719, 1846.5999755859, 10.5))
      {
      SendClientMessage(playerid,hiba,\"Belerúgtál egy ATM-be!\");
      TogglePlayerControllable(playerid,0);
      SetPlayerWantedLevel(playerid,2);
      SetPlayerColor(playerid, 0xFF0000AA);
      SetPVarInt(playerid,\"rabol\",1);
      SendClientMessageToAll(hiba,\"[RIASZTÁS]: Kirabolták az eggyik ATM-et!\");
      SendClientMessage(playerid, hiba, \"Kiraboltál egy ATM-et!\");
      SetTimerEx(\"rabolas\",15000,0,\"i\",playerid);
      }
      else
      {
      SendClientMessage(playerid,hiba,\"Nem vagy ATM közelébe!\");
      }
      }
      return 1;
}
forward rabolas(playerid);
public rabolas(playerid)
{
  new rcash =(random(50000-10000)+10000);
      TogglePlayerControllable(playerid,1);
      GivePlayerMoney(playerid, rcash);
      SendClientMessage(playerid,COLOR_ORANGE,\"Sikeresen kiraboltad az ATM-et!\");
      SetTimerEx(\"rabolasido\",300000,0,\"i\",playerid);
}
forward rabolasido(playerid);
public rabolasido(playerid)
{
      SendClientMessage(playerid,COLOR_GREEN,\"Letelt az idõd! Újra rabolhatsz!\");
      SetPVarInt(playerid,\"rabol\",0);
      SetPlayerWantedLevel(playerid,0);
      return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
        if(classid >= 0 && classid <= 0)
{
gTeam[playerid] = RENDOR;
GameTextForPlayer(playerid, \"~b~RENDÕR[ADMIN]\", 3000, 4);
SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
    SetPlayerFacingAngle(playerid, 94.0821);
    SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
        SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
ApplyAnimation(playerid,\"PED\",\"IDLE_CHAT\",4.0,1,1,1,1,1);
        }else if(classid >= 1 && classid <= 4)
        {
        gTeam[playerid] = CIVIL;
GameTextForPlayer(playerid, \"~w~CIVIL\", 3000, 4);
SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
    SetPlayerFacingAngle(playerid, 94.0821);
    SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
        SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
ApplyAnimation(playerid,\"PED\",\"IDLE_CHAT\",4.0,1,1,1,1,1);
        }
    return 1;
}
public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid,textdraw);
if(gTeam[playerid] == RENDOR)
if(IsPlayerLAdmin(playerid))
    {
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2510.9165,-1686.7286,13.5698);
SetPlayerColor(playerid,FEHER);
        GivePlayerWeapon(playerid,31,2000);
        GivePlayerWeapon(playerid,25,2000);
        GivePlayerWeapon(playerid,29,2000);
        GivePlayerWeapon(playerid,24,2000);
        GivePlayerWeapon(playerid,3,2000);
SetPlayerArmour(playerid, 100);
}
else
{
        GameTextForPlayer(playerid,\"~r~Nem vagy admin!\", 3000, 3);
SetPlayerHealth(playerid, 0.0);
   ForceClassSelection(playerid);
   }
    }
    else if(gTeam[playerid] == CIVIL)
    {
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2299.1240,-1789.6088,13.5469);
     }
     return 1;
}
public OnGameModeInit()
{
AddPlayerClass(282, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(148, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(161, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(73, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(194, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
CreateObject(2942, 2023.5, 997.79998779297, 10.5, 0, 0, 90);
CreateObject(2942, 2239, 1283.5, 10.5, 0, 0, 270);
CreateObject(2942, 2090.5, 1458.9000244141, 10.5, 0, 0, 270);
CreateObject(2942, 2196.8999023438, 1680.8000488281, 12, 0, 0, 270);
CreateObject(2942, 2224.6999511719, 1846.5999755859, 10.5, 0, 0, 270);
SetGameModeText(\"[HUN]Elit Magyar Rendõrség\");
textdraw = TextDrawCreate(466.000000, 738.000000, \"]ELIT MAGYAR RENDÕRSÉG]\");
TextDrawFont(textdraw, 1);
     TextDrawLetterSize(textdraw, 0.519999, 1.400000);
TextDrawColor(textdraw,0xFFFF00FF);
TextDrawSetOutline(textdraw, 1);
     TextDrawSetProportional(textdraw, 1);
 for(new i; i < MAX_PLAYERS; i ++)
        {
                if(IsPlayerConnected(i))
                {
                        TextDrawShowForPlayer(i, textdraw);
                }
        }
return 1;
}
public OnGameModeExit()
{
    TextDrawHideForAll(textdraw);
    TextDrawDestroy(textdraw);
return 1;
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal