Detaljan opis problema: Izbacuje mi erore dole ce biti
Dio skripte: dole ce biti
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Erori
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(2) : error 010: invalid function or declaration
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(4) : error 010: invalid function or declaration
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(7) : error 010: invalid function or declaration
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(10) : error 010: invalid function or declaration
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(12) : error 010: invalid function or declaration
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(15) : error 010: invalid function or declaration
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(18) : error 010: invalid function or declaration
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(21) : error 010: invalid function or declaration
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(23) : error 010: invalid function or declaration
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(26) : error 010: invalid function or declaration
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(28) : error 010: invalid function or declaration
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(31) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(32) : error 010: invalid function or declaration
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(32 -- 33) : error 010: invalid function or declaration
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(33) : error 010: invalid function or declaration
C:\Documents and Settings\Bogdan\My Documents\Downloads\Samsung Gaming RolePlay\filterscripts\Bandera.pwn(33) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
16 Errors.Napravio sam je kao FilterScriptu :
//=========================================BANDERA SRECE=============================================================
if(strcmp(cmd, "/charity", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Koriscenje: /charity ");
return 1;
}
if(PlayerInfo == 106)
{
SendClientMessage(playerid, COLOR_GRAD1, "Komanda nije dozvoljena na ovoj lokaciji");
return 1;
}
moneys = strval(tmp);
if(moneys < 100000)
{
SendClientMessage(playerid, COLOR_GRAD1, "Nije dovoljno minimum 100k..");
return 1;
}
if(GetPlayerMoney(playerid) < moneys)
{
SendClientMessage(playerid, COLOR_GRAD1, "Nemate toliko novca.");
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 10, 1135.4493,-936.3835,42.8999,100, 1))
{
GivePlayerMoney(playerid, 500);
}
SafeGivePlayerMoney(playerid, -moneys);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s je donirao Banderi Srece sumu od $%d (/charity).",sendername, moneys);
SendClientMessage(playerid, COLOR_GRAD1, string);
SendClientMessage(playerid, COLOR_GRAD1, "Bandera:Dokle ces vise da gledas u mene :D!");
SendClientMessage(playerid, bandera, "Bandera srece se aktivirala i dala pare igracima koji su pored nje.");
printf("%s", string);
format(string, sizeof(string), "%s je donirao Banderi Srece sumu od $%d (/charity).",sendername, moneys);
PayLog(string);
}
return 1;
}