[Ajuda] Erro ao adicionar carros na concessionaria
#1

Olhe os erros
Quote:

C:\Users\User\Desktop\Etc\Mъsicas\Samp Server\filterscripts\Concessionбria.pwn(638 ) : error 032: array index out of bounds (variable "DealerCars")
C:\Users\User\Desktop\Etc\Mъsicas\Samp Server\filterscripts\Concessionбria.pwn(647) : error 032: array index out of bounds (variable "DealerCars")
C:\Users\User\Desktop\Etc\Mъsicas\Samp Server\filterscripts\Concessionбria.pwn(656) : error 032: array index out of bounds (variable "DealerCars")
C:\Users\User\Desktop\Etc\Mъsicas\Samp Server\filterscripts\Concessionбria.pwn(665) : error 017: undefined symbol "string9"
C:\Users\User\Desktop\Etc\Mъsicas\Samp Server\filterscripts\Concessionбria.pwn(665) : error 017: undefined symbol "string9"
C:\Users\User\Desktop\Etc\Mъsicas\Samp Server\filterscripts\Concessionбria.pwn(665) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Etc\Mъsicas\Samp Server\filterscripts\Concessionбria.pwn(665) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


7 Errors.

Arquivo concessionaria http://pastebin.com/FQBK3gBB
Linhas que adicionei
pawn Код:
>>>linha da 629 atй 674<<<<
    DealerCars[8] = AddStaticVehicle(426,2162.0991,-1143.6562,24.8497,231.7601,1,1); // Premier
    IsADealerCar[DealerCars[8]] = true;
    CarPrice[DealerCars[8]] = 20000;
    format(string9, sizeof(string9), "Nome: %s\nPreзo: $%i", GetVehicleNameFromID(DealerCars[8]), CarPrice[DealerCars[8]]);
    DealerCar[8] = Create3DTextLabel(string9, 0x33CCFFAA, 2162.0991,-1143.6562,24.8497, 20.0, 0);
>>>linha da 688 atй 715<<<<
    IsADealerCar[DealerCars[8]] = false;
    CarPrice[DealerCars[8]] = 0;
    DestroyVehicle(DealerCars[8]);
    Delete3DTextLabel(DealerCar[8]);
O que deu de errado
Reply
#2

pawn Код:
new DealerCars[8];
pawn Код:
new string9[128];
Reply
#3

Obrigado
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)