Problem
#1

E ovako, počeo sam raditi GM od 0.. uradio sam login/register, tut i par komandi, kompaliro sve ok bez erora i kad pokrenem server i uđem u njega ne otvara se a u onom crnom prozoru piљe neљta ko eror


http://www.imagesforme.com/show.php/1073229_.bmp
Reply
#2

Zaboravio si na main() funkciju u gamemodu.

pawn Code:
main()
{
  print("\nmain() funkcija.");
}
Reply
#3

A dje to ide, u koji dio skripte ?
Reply
#4

Samo gledaj da bude izvan funkcije/callbacka. Najbolje je da ju staviљ ispod include i define linija.

Primjer:
pawn Code:
#include "a_samp"

#define TEAM_COP (0)
#define TEAM_MAFIA (1)

main() { }

/* ostalo */
Reply
#5

Sad mi pojavi Run time error 17: ''Invalid/unsupported P-code file format
Reply
#6

Napravio si neku greљku, pogledaj ovaj topik - http://forum.sa-mp.com/index.php?topic=81728.0
Reply
#7

Pronaљo sam greљku i rijeљio al mi pojavi opet onaj eror 20, vjerovatno nisam na pravo mjesto unio main

Code:
// Moj GM 2
// Las Vegas RolePlay
// By Elmedin
#include <a_samp>

#if defined FILTERSCRIPT
#if defined COLOR_WHITE 0xFFFFFFAA
#if defined PlayerInfo

main()
{
  print("\nmain() funkcija.");
}
#endif
public OnGameModeInit()
{
  print("Gamemode started!");
  return 1;
}
public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Las Vegas RolePlay");
	print("--------------------------------------\n");
	return 1;
}

#else
#endif
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1567.8416, -1887.0773, 13.5582);
	SetPlayerCameraPos(playerid, 1567.8416, -1887.0773, 13.5582);
	SetPlayerCameraLookAt(playerid, 1567.8416, -1887.0773, 13.5582);
	return 1;
}
Eto par redova pa moћe neko napisati kako treba pravilno
Reply
#8

Naravno da ne radi, jer PlayerInfo nikad nije definiran.

pawn Code:
// Moj GM 2
// Las Vegas RolePlay
// By Elmedin
#include <a_samp>

#define COLOR_WHITE 0xFFFFFFAA

main()
{
  print("\nmain() funkcija.");
}

public OnGameModeInit()
{
  print("Gamemode started!");
  return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
  SetPlayerPos(playerid, 1567.8416, -1887.0773, 13.5582);
  SetPlayerCameraPos(playerid, 1567.8416, -1887.0773, 13.5582);
  SetPlayerCameraLookAt(playerid, 1567.8416, -1887.0773, 13.5582);
  return 1;
}

/* i tako dalje.. */
Vjerojatno si ovako mislio.
Reply


Forum Jump:


Users browsing this thread: