PDA

View Full Version : Pawno bunch of errors.


JasonRiggs
25/06/2017, 05:12 PM
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(21348) : warning 208: function with tag result used before definition, forcing reparse
F:\SA-MP server\BCRP Compiler folder\pawno\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\pawno\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\pawno\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\pawno\include\dutils.inc(267) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\pawno\include\dutils.inc(324) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\pawno\include\dutils.inc(366) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\pawno\include\mSelection.inc(598) : warning 219: local variable "f" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\pawno\include\mSelection.inc(698) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\pawno\include\foreach.inc(964) : warning 219: local variable "next" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\pawno\include\foreach.inc(1021) : warning 219: local variable "next" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\pawno\include\sscanf2.inc(218) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\pawno\include\sscanf2.inc(218) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\pawno\include\sscanf2.inc(278) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\pawno\include\sscanf2.inc(278) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(1139) : warning 219: local variable "Rob" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(1139) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(1157) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(1158) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(1173) : warning 219: local variable "copsonline" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(1182) : warning 219: local variable "Saved" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(1665) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(1749) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(2503) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(2627) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(2661) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(2712) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(2760) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(2822) : error 035: argument type mismatch (argument 1)
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(2824) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(2861) : error 035: argument type mismatch (argument 1)
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(2863) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(2913) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(2997) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(3028) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(3059) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(3087) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(3117) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(3147) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(3177) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(3208) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(3239) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(3301) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(3342) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(3390) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(3416) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(3463) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(3492) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(4480) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(4861) : warning 219: local variable "Rob" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(4861) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(4879) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(4880) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(4895) : warning 219: local variable "copsonline" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(4904) : warning 219: local variable "Saved" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(4919) : warning 219: local variable "w" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(4925) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(4929) : warning 219: local variable "playerb" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(4971) : warning 219: local variable "w" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(4976) : warning 219: local variable "w" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5004) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5004) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5004) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5004) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5004) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5004) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5116) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5119) : warning 219: local variable "Rob" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5137) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5138) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5153) : warning 219: local variable "copsonline" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5162) : warning 219: local variable "Saved" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5199) : warning 219: local variable "w" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5408) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5414) : warning 213: tag mismatch
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5414) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5414) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5414) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5414) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5414) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5414) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5416) : warning 213: tag mismatch
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5416) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5416) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5416) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5416) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5416) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5416) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5458) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5461) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5497) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5500) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5566) : warning 213: tag mismatch
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5566) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5566) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5566) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5566) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5566) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5566) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5607) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5607) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5607) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5607) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5607) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5607) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5640) : warning 219: local variable "hit" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5654) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5689) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5689) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5689) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5689) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5689) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5689) : warning 202: number of arguments does not match definition
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5706) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandPerformed")
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(5708) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(8517) : warning 219: local variable "engine" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(8517) : warning 219: local variable "bonnet" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(10456) : warning 219: local variable "playerb" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(10458) : warning 219: local variable "string" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(12383) : warning 219: local variable "engine" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(12383) : warning 219: local variable "bonnet" shadows a variable at a preceding level
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17198) : error 020: invalid symbol name ""
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17198 -- 17237) : error 021: symbol already defined: "done"
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17238) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17239) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17241) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17243) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17246) : error 021: symbol already defined: "DisablePlayerCheckpoint"
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17251) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17253) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17255) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17256) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17257) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17258) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17259) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17264) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17265) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17266) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17275) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17280) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17282) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17284) : error 010: invalid function or declaration
F:\SA-MP server\BCRP Compiler folder\gamemodes\BCRP.pwn(17286) : error 010: invalid function or declaration

Lines from 17198 to 17286:

CMD:exitgarage(playerid, params[])
{
new done, string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(IsPlayerInRangeOfPoint(playerid, 20, -1749.8448,677.3413,105.1406)) // Garages
{
new idx;
idx = GetPlayerVirtualWorld(playerid)-500;
if(!done && idx < MAX_GARAGES && GarageInfo[idx][gLevel])
{
new vehicleid = GetPlayerVehicleID(playerid);
format(string, sizeof(string), "* %s lifts the door up and exits the garage.", RPN(playerid));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
//if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(vehicleid, GarageInfo[idx][gX], GarageInfo[idx][gY], GarageInfo[idx][gZ]);
SetCameraBehindPlayer(playerid);
SetVehicleVirtualWorld(vehicleid, 0);
SetPlayerPos(playerid, GarageInfo[idx][gX], GarageInfo[idx][gY], GarageInfo[idx][gZ]);
SetPlayerInterior(playerid, 0);
SetCameraBehindPlayer(playerid);
SetPlayerVirtualWorld(playerid, 0);
PutPlayerInVehicle(playerid, vehicleid, 0);
}
else
{
SetPlayerPos(playerid, GarageInfo[idx][gX], GarageInfo[idx][gY], GarageInfo[idx][gZ]);
SetPlayerInterior(playerid, 0);
SetCameraBehindPlayer(playerid);
SetPlayerVirtualWorld(playerid, 0);
}
done = 1;
}
}
return 1;
}
CMD:exit(playerid, params[])
{
new done, string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
for(new idx=0; idx<MAX_DOORS; idx++) // Dynamic Doors
{
if(!done && IsPlayerInRangeOfPoint(playerid, 2, DoorInfo[idx][dIX], DoorInfo[idx][dIY], DoorInfo[idx][dIZ]) && GetPlayerVirtualWorld(playerid) == DoorInfo[idx][dIVW] && GetPlayerInterior(playerid) == DoorInfo[idx][dIInt])
{
if(BankRobber[playerid] && BankBlock && GetPlayerInterior(playerid) == 83 && GetPlayerVirtualWorld(playerid) == 8473)
{
new Rob = BankRobber[playerid]-1;
DisablePlayerCheckpoint(playerid);
BankRobbersCount --;
format(BankRobbers[Rob], MAX_PLAYER_NAME, "");
DeliverMoney[playerid] = 0;
//
foreach(Player, i)
{
if(BankRobber[i] || PlayerInfo[i][pFac] == 1)
{
if(Rob == 0) TextDrawHideForPlayer(i, Textdraw1);
else if(Rob == 1) TextDrawHideForPlayer(i, Textdraw2);
else if(Rob == 2) TextDrawHideForPlayer(i, Textdraw3);
else if(Rob == 3) TextDrawHideForPlayer(i, Textdraw4);
else if(Rob == 4) TextDrawHideForPlayer(i, Textdraw5);
}
}
format(string, sizeof(string), "** %s has went out of the bank before loading money and has failed the robbery. **", RPN(playerid));
SendRobberyMessage(COLOR_LIGHTRED, string);
SendCopMessage(COLOR_LIGHTRED, string);
BankRobber[playerid] = 0;
if(BankRobbersCount == 0)
{
TextDrawHideForAll(Textdraw0);
TextDrawHideForAll(Textdraw1);
TextDrawHideForAll(Textdraw2);
TextDrawHideForAll(Textdraw3);
TextDrawHideForAll(Textdraw4);
TextDrawHideForAll(Textdraw5);
// BankRobbery = 0;
RobberyStarted = 0;
format(string, sizeof(string), "** The bank robbery has ended, $%d were stolen and $%d were saved. **", TotalStolen*10000, (TotalRobbers*10000-(TotalStolen*10000)));
SendClientMessageToAll(COLOR_YELLOW, string);
TotalRobbers = 0;
new copsonline;
foreach(Player, i)
{
if(IsACop(i)) copsonline++;
}
foreach(Player, i)
{
if(IsACop(i))

Line 2861:

if(!fexist("biz.cfg")) fcreate("biz.cfg");

Line 2822:

f(!fexist("biz.cfg")) fcreate("biz.cfg");

Any help please?

elhanan
25/06/2017, 05:25 PM
Line 2822:

PHP Code:
f(!fexist("biz.cfg")) fcreate("biz.cfg");


Change it to if(!fexist("biz.cfg")) fcreate("biz.cfg");

Vince
25/06/2017, 05:52 PM
Oh my fucking god, don't just ignore the warnings! They are there to tell you that what you've written is logically wrong. For starters, don't create shitty globals with names like "string". In fact, don't create globals at all if you can avoid them.

JasonRiggs
25/06/2017, 05:52 PM
it is "if" i just wrote it wrong in the post,,

JasonRiggs
25/06/2017, 05:55 PM
Oh my fucking god, don't just ignore the warnings! They are there to tell you that what you've written is logically wrong. For starters, don't create shitty globals with names like "string". In fact, don't create globals at all if you can avoid them.

What to do for such line for example 10456?

public BoxCountDown(playerid, playerb)

jlalt
25/06/2017, 07:25 PM
What to do for such line for example 10456?

public BoxCountDown(playerid, playerb)

change playerb in it and under it to playerb2 or anything that is unique and not defined globally before.

JasonRiggs
26/06/2017, 01:56 AM
What about the errors??

JasonRiggs
27/06/2017, 07:47 PM
Bump

saffierr
28/06/2017, 04:57 AM
I know something even better, STOP COPYING if you don't know what the hack you're doing.

JasonRiggs
28/06/2017, 12:29 PM
I know something even better, STOP COPYING if you don't know what the hack you're doing.

Copying what? It is a gamemode i found, all what I've done is changing the places of some static vehicles and icons and fixed some ig bugs, All what I know is STOP MESSING if you don't know what you're saying..

Sew_Sumi
28/06/2017, 01:51 PM
Copying what? It is a gamemode i found, all what I've done is changing the places of some static vehicles and icons and fixed some ig bugs, All what I know is STOP MESSING if you don't know what you're saying..

You've obviously missed a brace or a comma somewhere.


No need to tell him to stop messing when you proclaim yourself to be a medium scripter...


Also as Vince said, Don't ignore warnings, they are likely to be adding to this issue, or making your code not work AT ALL, yet it's not failing to compile.

JasonRiggs
28/06/2017, 01:55 PM
You've obviously missed a brace or a comma somewhere.


No need to tell him to stop messing when you proclaim yourself to be a medium scripter...


Also as Vince said, Don't ignore warnings, they are likely to be adding to this issue, or making your code not work AT ALL, yet it's not failing to compile.

Warnings are fixed, the only program overhere now are errors, and the error lines are in the thread itself.

DuyDang2412
28/06/2017, 02:51 PM
You are missing some brackets, return to the last place where you edited.

Sew_Sumi
28/06/2017, 03:00 PM
^^ When someone says something, you should take notice... I also mentioned the braces, however you didn't address this, simply proclaimed you had fixed the warnings...


How exactly did you fix all those warnings?

JasonRiggs
29/06/2017, 12:08 PM
^^ When someone says something, you should take notice... I also mentioned the braces, however you didn't address this, simply proclaimed you had fixed the warnings...


How exactly did you fix all those warnings?

Changed its names as it was defined globaly as someone said, I made it instead of string > string2 etc..