[HELP] Errori..Moj gm

Započeo VAYNE, Februar 22, 2012, 17:36:21 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moj FreeRoam
Detaljan opis problema: Evo krenuo sam da pravim svoj freeroam server..Sada kako da se rijesim ovih errora ?
Dio skripte: C:\Users\Amurito\Desktop\GameModovi\Obicni SAMP server\gamemodes\BiH FreeRoam.pwn(35) : error 026: no matching "#if..."
C:\Users\Amurito\Desktop\GameModovi\Obicni SAMP server\gamemodes\BiH FreeRoam.pwn(44) : error 026: no matching "#if..."
C:\Users\Amurito\Desktop\GameModovi\Obicni SAMP server\gamemodes\BiH FreeRoam.pwn(73 -- 75) : error 001: expected token: ",", but found "return"
C:\Users\Amurito\Desktop\GameModovi\Obicni SAMP server\gamemodes\BiH FreeRoam.pwn(75) : warning 217: loose indentation
C:\Users\Amurito\Desktop\GameModovi\Obicni SAMP server\gamemodes\BiH FreeRoam.pwn(113 -- 115) : error 001: expected token: ",", but found "return"
C:\Users\Amurito\Desktop\GameModovi\Obicni SAMP server\gamemodes\BiH FreeRoam.pwn(115) : warning 217: loose indentation
C:\Users\Amurito\Desktop\GameModovi\Obicni SAMP server\gamemodes\BiH FreeRoam.pwn(119) : error 010: invalid function or declaration
C:\Users\Amurito\Desktop\GameModovi\Obicni SAMP server\gamemodes\BiH FreeRoam.pwn(124) : error 010: invalid function or declaration
C:\Users\Amurito\Desktop\GameModovi\Obicni SAMP server\gamemodes\BiH FreeRoam.pwn(126) : error 010: invalid function or declaration
C:\Users\Amurito\Desktop\GameModovi\Obicni SAMP server\gamemodes\BiH FreeRoam.pwn(128) : error 010: invalid function or declaration
C:\Users\Amurito\Desktop\GameModovi\Obicni SAMP server\gamemodes\BiH FreeRoam.pwn(133) : error 010: invalid function or declaration
C:\Users\Amurito\Desktop\GameModovi\Obicni SAMP server\gamemodes\BiH FreeRoam.pwn(135) : error 010: invalid function or declaration
C:\Users\Amurito\Desktop\GameModovi\Obicni SAMP server\gamemodes\BiH FreeRoam.pwn(137) : error 010: invalid function or declaration
C:\Users\Amurito\Desktop\GameModovi\Obicni SAMP server\gamemodes\BiH FreeRoam.pwn(142) : error 010: invalid function or declaration
C:\Users\Amurito\Desktop\GameModovi\Obicni SAMP server\gamemodes\BiH FreeRoam.pwn(144) : error 010: invalid function or declaration
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase

Neke slike/video za lakse dobivanje pomoci(neobavezno):

Daj nam deo skripte, tacnije linije na kojima se desavaju errori i warninzi. Ovako ti ne mozemo pomoci.


Trenutno radim na modu Monaco RolePlay od 0.
Uradjeno: 95% | COMING SOON!

Evo vam citava skripita..ako moze neko je prepraviti ali da je sve isto ! !!!!!
// Includovi
#include <a_samp>
#include <core>
#include <datagram>
#include <file>
#include <float>
#include <string>
#include <time>
// Boje
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_RED 0xFF0000AA
#define COLOR_GREEN 0x00FF00AA
#define COLOR_BLUE 0x0000FFAA
#define COLOR_GRAY 0xAFAFAFAA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_LIGHTBLUE 0x0AFFFFAA
#define COLOR_PURPLE 0xFF00FFAA
#define COLOR_ORANGE 0xFFBB00AA

#pragma tabsize 0

public OnFilterScriptInit()
{
print("\n---------------------------------------------------");
print(" NEDAM IME by sTrumF je spremna za koristenje !   ");
print("-----------------------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}


main()
{
print("\n--------------------------------------------------");
print("  NEDAM IME by sTrumF je spremna za koristenje ! ");
print("----------------------------------------------------\n");
}

#endif

public OnGameModeInit()
{
    AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
    AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);

// Don't use these lines if it's a filterscript
SetGameModeText("NEDAM IME | v1.0.0 ~ sTrumF ~");
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)
{

     SendClientMessage(playerid,COLOR_GREEN, " Dobro dosao na NEDAM IME,zelimo vam ugodnu igru "

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;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/deagle", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,24,1000);
SendClientMessage(playerid,COLOR_GREEN, " Dobio si deagle ! "
// Do something here
return 1;
}
return 0;
}
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,0);
SendClientMessage(playerid,COLOR_RED, " Kucao si /kill i ubio si se  ! "
// Do something here
return 1;
}
return 0;
}
if (strcmp("/healme", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,1000);
SendClientMessage(playerid,COLOR_GREEN, " Izljecio si se  ! "
// Do something here
return 1;
}
return 0;
}
if (strcmp("/cash", cmdtext, true, 10) == 0)
{
GivePlayerMoney(playerid,100000);
SendClientMessage(playerid,COLOR_GREEN, " Dobio si 100 hiljada ! "
// Do something here
return 1;
}
return 0;
}
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;
}
Poslednja Izmena: Februar 22, 2012, 18:15:39 POSLE PODNE od [TL:RP] sTrumF

Evo ti...

// Includovi
#include <a_samp>
#include <core>
#include <datagram>
#include <file>
#include <float>
#include <string>
#include <time>
// Boje
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_RED 0xFF0000AA
#define COLOR_GREEN 0x00FF00AA
#define COLOR_BLUE 0x0000FFAA
#define COLOR_GRAY 0xAFAFAFAA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_LIGHTBLUE 0x0AFFFFAA
#define COLOR_PURPLE 0xFF00FFAA
#define COLOR_ORANGE 0xFFBB00AA

#pragma tabsize 0

public OnFilterScriptInit()
{
print("\n---------------------------------------------------");
print(" NEDAM IME by sTrumF je spremna za koristenje !   ");
print("-----------------------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}


main()
{
print("\n--------------------------------------------------");
print("  NEDAM IME by sTrumF je spremna za koristenje ! ");
print("----------------------------------------------------\n");
}


public OnGameModeInit()
{
    AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
    AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);

// Don't use these lines if it's a filterscript
SetGameModeText("NEDAM IME | v1.0.0 ~ sTrumF ~");
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)
{

     SendClientMessage(playerid,COLOR_GREEN, " Dobro dosao na NEDAM IME,zelimo vam ugodnu igru ");

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;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
{
if (strcmp("/deagle", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,24,1000);
SendClientMessage(playerid,COLOR_GREEN, " Dobio si deagle ! ");
return 1;
}
//return 0;
}
{
if(strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,0);
SendClientMessage(playerid,COLOR_RED, " Kucao si /kill i ubio si se  ! ");
return 1;
}
//return 0;
}
{
if (strcmp("/healme", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,1000);
SendClientMessage(playerid,COLOR_GREEN, " Izljecio si se  ! ");
return 1;
}
//return 0;
}
if (strcmp("/cash", cmdtext, true, 10) == 0)
{
GivePlayerMoney(playerid,100000);
SendClientMessage(playerid,COLOR_GREEN, " Dobio si 100 hiljada ! ");
// Do something here
return 1;
}
return 0;
}
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;
}


Razlog zasto si imao errore: Uglavnom radi zaboravnosti :D Zaboravis kod 'SendClientMessage' da na kraju napises ');' Ostali razlozi su to sto si zaboravljao stavljati { i } tamo gde treba. Sve u svemu, eto compilovao sam, nema errora.


Trenutno radim na modu Monaco RolePlay od 0.
Uradjeno: 95% | COMING SOON!