Skripta koju koristim: FactionGame editujem
Detaljan opis problema: Ja sam prevodio game mod, menjo neke komande, prevodio sam nesto, nesto sam i dodao sto je bilo stavljeno u /* takvoj stavki, ali ja sam jos uvek amater u skriptanju
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
evo vam i erori koje mi izbacuje :
D:\Modovi\FactionGame\pawno\include\JunkBuster.inc(3240) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2057) : error 004: function "SafeGivePlayerMoney" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2083) : error 004: function "SafeGivePlayerMoney" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2113) : error 004: function "SafeResetPlayerWeapons" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2114) : error 004: function "SafeGivePlayerWeapon" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2138) : error 004: function "SafeResetPlayerWeapons" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2387) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2391) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2402) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2414) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2418) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2430) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2434) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2438) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2442) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2446) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2450) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2454) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2458) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2462) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2466) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2478) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2482) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2486) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2490) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2494) : error 004: function "PlayerToPoint" is not implemented
D:\Modovi\FactionGame\gamemodes\FactionGame.pwn(2506) : error 004: function "PlayerToPoint" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Ne razumem sta je to :S molim vas pomognite
Negdje nisi zatvorio zagradu.
EDIT:
Broj otvorenih { i zatvorenih } zagrada mora biti jednak.
Daj dio tja scripte ako neznas zatvorit pomoci cemo ti
Hvala ti, samo neznam gde tacno trebam da zatvorim, :S evo vam deo :
public ExtortionBiz(bizid, money)
{
new string[256];
format(string, sizeof(string), "Niko");
if(strcmp(BizzInfo[bizid][bExtortion],string, true ) == 0 )
{
return 0;
}
foreach (Player, i)
{
new name[MAX_PLAYER_NAME];
new wstring[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), "%s", name);
strmid(wstring, string, 0, strlen(string), 255);
if(strcmp(BizzInfo[bizid][bExtortion] ,wstring, true ) == 0 )
{
new value = money / 100;
value = value * 10;
SafeGivePlayerMoney (i, value);
BizzInfo[bizid][bTill] -= value;
}
}
return 1;
}
public ExtortionSBiz(bizid, money)
{
new string[256];
format(string, sizeof(string), "Niko");
if(strcmp(SBizzInfo[bizid][sbExtortion],string, true ) == 0 )
{
return 0;
}
foreach (Player, i)
{
new name[MAX_PLAYER_NAME];
new wstring[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), "%s", name);
strmid(wstring, string, 0, strlen(string), 255);
if(strcmp(SBizzInfo[bizid][sbExtortion] ,wstring, true ) == 0 )
{
new value = money / 100;
value = value * 10;
SafeGivePlayerMoney(i, value);
SBizzInfo[bizid][sbTill] -= value;
}
}
return 1;
}
public PreparePaintball()
{
foreach (Player, i)
{
if(PlayerPaintballing != 0)
{
SendClientMessage(i, COLOR_YELLOW, "Paintball Mech ce poceti za 20 sekundi.");
}
}
SetTimer("StartPaintball", 20000, 0);
return 1;
}
public StartPaintball()
{
PaintballRound = 1;
StartingPaintballRound = 0;
PaintballWinner = 999;
PaintballWinnerKills = 0;
foreach (Player, i)
{
if(PlayerPaintballing != 0)
{
SafeResetPlayerWeapons(i);
SafeGivePlayerWeapon(i, 29, 999);
TogglePlayerControllable(i, 1);
SendClientMessage(i, COLOR_YELLOW, "Paintball Mech je poceo, ostalo je jos 4 minuta.");
PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
}
}
SetTimer("PaintballEnded", 240000, 0);
return 1;
}
Evo ja sam samo ubacio i Compile/Run i nije bilo errora:
public ExtortionBiz(bizid, money)
{
new string[256];
format(string, sizeof(string), "Niko");
if(strcmp(BizzInfo[bizid][bExtortion],string, true ) == 0 )
{
return 0;
}
foreach (Player, i)
{
new name[MAX_PLAYER_NAME];
new wstring[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), "%s", name);
strmid(wstring, string, 0, strlen(string), 255);
if(strcmp(BizzInfo[bizid][bExtortion] ,wstring, true ) == 0 )
{
new value = money / 100;
value = value * 10;
SafeGivePlayerMoney (i, value);
BizzInfo[bizid][bTill] -= value;
}
}
return 1;
}
public ExtortionSBiz(bizid, money)
{
new string[256];
format(string, sizeof(string), "Niko");
if(strcmp(SBizzInfo[bizid][sbExtortion],string, true ) == 0 )
{
return 0;
}
foreach (Player, i)
{
new name[MAX_PLAYER_NAME];
new wstring[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), "%s", name);
strmid(wstring, string, 0, strlen(string), 255);
if(strcmp(SBizzInfo[bizid][sbExtortion] ,wstring, true ) == 0 )
{
new value = money / 100;
value = value * 10;
SafeGivePlayerMoney(i, value);
SBizzInfo[bizid][sbTill] -= value;
}
}
return 1;
}
public PreparePaintball()
{
foreach (Player, i)
{
if(PlayerPaintballing != 0)
{
SendClientMessage(i, COLOR_YELLOW, "Paintball Mech ce poceti za 20 sekundi.");
}
}
SetTimer("StartPaintball", 20000, 0);
return 1;
}
public StartPaintball()
{
PaintballRound = 1;
StartingPaintballRound = 0;
PaintballWinner = 999;
PaintballWinnerKills = 0;
foreach (Player, i)
{
if(PlayerPaintballing != 0)
{
SafeResetPlayerWeapons(i);
SafeGivePlayerWeapon(i, 29, 999);
TogglePlayerControllable(i, 1);
SendClientMessage(i, COLOR_YELLOW, "Paintball Mech je poceo, ostalo je jos 4 minuta.");
PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
}
}
SetTimer("PaintballEnded", 240000, 0);
return 1;
}