[Ajuda] Alguns Erros - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Alguns Erros (
/showthread.php?tid=633496)
Alguns Erros -
GabrielMT - 02.05.2017
;-; bem estava fazendo uma rota de fazendeiro no gm qnd deu alguns erros que estб praticamente impossнvel de eu resolver
se alguem souber o(a) erro/soluзгo por favor comenta!
Erros:
PHP код:
C:\Users\GabrielMT\Desktop\GabrielMT\r2\gamemodes\GM.pwn(34273) : error 028: invalid subscript (not an array or too many subscripts): "Combustivel"
C:\Users\GabrielMT\Desktop\GabrielMT\r2\gamemodes\GM.pwn(34273) : warning 215: expression has no effect
C:\Users\GabrielMT\Desktop\GabrielMT\r2\gamemodes\GM.pwn(34273) : error 001: expected token: ";", but found "]"
C:\Users\GabrielMT\Desktop\GabrielMT\r2\gamemodes\GM.pwn(34273) : error 029: invalid expression, assumed zero
C:\Users\GabrielMT\Desktop\GabrielMT\r2\gamemodes\GM.pwn(34273) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Linhas:
PHP код:
//=============[FAZENDEIROS]===================//
if(IniciarColheita[playerid] == 1)
{
new carroid = GetPlayerVehicleID(playerid);
new oo = GetVehicleModel(carroid);
if(oo == 532)
{
if(PlayerToPoint(10,playerid, 1916.8585,207.9083,31.7969))
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0, 1922.2612,229.4041,28.8836, 1942.2209,232.3444,28.8535, 10.0);
Combustivel[carroid] = 100; // 34273
PlayerPlaySound(playerid, 1149, 0.0, 0.0, 0.0);
IniciarColheita[playerid] = 2;
}
}
}
if(IniciarColheita[playerid] == 2)
etc ...
Re: Alguns Erros -
ViniBorn - 02.05.2017
Combustivel foi declarado de que forma?