Pomagajte hitno

Započeo Manuel23, Maj 11, 2020, 22:57:41 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): vaš odgovorScript[gamemodes/NM.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
Dio skripte: [ pawn ]vaš odgovor[ /pawn ]//============={INCLUDE}==========================
#include <a_samp>
#include <a_vehicles>
#include    <datagram>
#include    <core>
#include    <file>
#include    <time>
#include   <string>
#include    <YSI\y_ini>
#include   < YSI\y_commands>
#include    <YSI\y_hooks>
#include    <YSI\y_als>
#include    <YSI\y_timers>
#include    <YSI\y_master>
#include    <YSI\y_bitmap>
#include    <YSI\y_amx>
#include    <YSI\y_dialog>
#include    <YSI\y_debug>
#include    <YSI\y_mouse>
#include    <YSI\y_playerset>
//=============================================
#define PHP_SEND
#define PHP_RECEIVE
#define SCM     SendClientMessage
#define SPD     ShowPlayerDialog
#define SCMTA   SendClientMessageToAll
#define DIALOG_DOBRODOSLI 1
//=================================================
#if defined FILTERSCRIPT

main()
{
   print("\n----------------------------------");
   print(" NEW MAN ROLEPLAY SERVER            ");
   print("----------------------------------\n");
}
//============================POCETAK SKRIPTE================================

//=======================================================================
public InPlayerConnect(playerid)
{
SCM(playerid, -1,"Dobrodosli na server zabavite se!");
    return 1;
}
enum pInfo
pMoney
pRespekti
pLevel
pSkin
}
   new SetPlayerMoney(playerid, 5000);
   new SetPlayerSkin(playerid, 10);
   new SetPlayerLevel(playerid, 1);
   return 1;
{
//=======================VOZILA SPAWNOVI SET POZICIJE(DEBUGS)===================
SetGameModeText("NM:RP by Manuel");
AddPlayerClass(0,1589.8168,-2333.8904,13.5393,85.9409,0,0,0,0,0,0); // spawn
AddStaticVehicle(401,1559.4672,-2309.1936,13.3276,91.8296,47,47); // v 1
AddStaticVehicle(401,1559.7615,-2312.8025,13.3272,85.2276,52,52); // v 2
AddStaticVehicle(401,1559.6438,-2315.7170,13.3269,90.5951,113,113); // v 3
AddStaticVehicle(401,1560.4701,-2318.8503,13.3275,88.4602,91,91); // v 3
AddStaticVehicle(401,1561.8870,-2322.4709,13.3293,91.1774,41,41); // v 4
SetCameraLookAt(1589.8168,-2333.8904,13.5393,85.9409);
#endif
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike

InPlayerConnect? Koliko znam OnPlayerConnect



#if defined FILTERSCRIPT
Zasto to koristis ako nije skripta?
SetGameModeText("NM:RP by Manuel");
AddPlayerClass(0,1589.8168,-2333.8904,13.5393,85.9409,0,0,0,0,0,0); // spawn
AddStaticVehicle(401,1559.4672,-2309.1936,13.3276,91.8296,47,47); // v 1
AddStaticVehicle(401,1559.7615,-2312.8025,13.3272,85.2276,52,52); // v 2
AddStaticVehicle(401,1559.6438,-2315.7170,13.3269,90.5951,113,113); // v 3
AddStaticVehicle(401,1560.4701,-2318.8503,13.3275,88.4602,91,91); // v 3
AddStaticVehicle(401,1561.8870,-2322.4709,13.3293,91.1774,41,41); // v 4
SetCameraLookAt(1589.8168,-2333.8904,13.5393,85.9409);


Ne moze ti SetGameModeText ici pod OnPlayerConnect ide u OnGameModeInit ( tako isto i kreiranje vozila ). Uzmi pogledaj neki jednostavniji mod pa vidi kako je on radjen pa vidi po njemu jer ovako da ti objasnjavam nema logike jer ne znas ni osnove.