22.12.2012, 21:39
Bom o erro й este:
Linha:
pawn Код:
C:\Documents and Settings\Usuario\Desktop\Nova pasta\gamemodes\Servidor.pwn(356) : error 028: invalid subscript (not an array or too many subscripts): "IsPlayerInVehicle"
C:\Documents and Settings\Usuario\Desktop\Nova pasta\gamemodes\Servidor.pwn(356) : warning 215: expression has no effect
C:\Documents and Settings\Usuario\Desktop\Nova pasta\gamemodes\Servidor.pwn(356) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Usuario\Desktop\Nova pasta\gamemodes\Servidor.pwn(356) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Usuario\Desktop\Nova pasta\gamemodes\Servidor.pwn(356) : 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.
pawn Код:
if(IsPlayerInVehicle[c](playerid, VGrove[c]) && PlayerInfo[playerid][Grove] < 1)
pawn Код:
forward VerificarVeiculo(playerid);
public VerificarVeiculo(playerid)
{
for(new c = 0; c <= 4; c++)
{
if(IsPlayerInVehicle[c](playerid, VGrove[c]) && PlayerInfo[playerid][Grove] < 1)
{
SendClientMessage(playerid, -1, "Vocк nгo й da Grove Street.");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
return 1;
}