5 errors with /rentboat
#1

Код:
C:\Users\Andreew\Desktop\v1.2a.pwn(15663) : error 032: array index out of bounds (variable "BizzInfo")
C:\Users\Andreew\Desktop\v1.2a.pwn(15674) : error 032: array index out of bounds (variable "BizzInfo")
C:\Users\Andreew\Desktop\v1.2a.pwn(15679) : error 032: array index out of bounds (variable "BizzInfo")
C:\Users\Andreew\Desktop\v1.2a.pwn(15680) : error 032: array index out of bounds (variable "BizzInfo")
C:\Users\Andreew\Desktop\v1.2a.pwn(15681) : error 032: array index out of bounds (variable "BizzInfo")
the rent boat code.
Код:
if(strcmp(cmd, "/rentboat", true) == 0)
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
new newcar = GetPlayerVehicleID(playerid);
if(newcar==RentBoat1||newcar==RentBoat2||newcar==RentBoat3)
{
if (HireCar[playerid] != newcar)
{
if(BizzInfo[21][bProd] == 99999)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
if(PlayerInfo[playerid][pPbiskey] == 21)
{
GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3);
TogglePlayerControllable(playerid, 1);
return 1;
}
if (GetPlayerMoney(playerid) < BizzInfo[21][bEntcost])
{
SendClientMessage(playerid, COLOR_RED, "You dont have that much cash");
return 1;
}
AntiHack(playerid,-BizzInfo[21][bEntcost]);
BizzInfo[21][bTakings] = BizzInfo[21][bTakings]+BizzInfo[21][bEntcost];
BizzInfo[21][bProd]--;
}
if(HireCar[playerid] != 299)
{
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
}
HireCar[playerid] = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~We hope you enjoy ~n~the use of this boat~n~To lock or unlock your boat~n~type ~g~/lock~n~~w~please sail safely",hirefee);
TogglePlayerControllable(playerid, 1);
GameTextForPlayer(playerid, string, 5000, 3);
}
return 1;
}
any ideas. and to the ones who help, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)