new VCAMINHONEIRO[11];
new Profissao[MAX_PLAYERS];
#define CAMINHONEIRO 1
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER) VerificarVeiculo(playerid);
return 1;
}
forward VerificarVeiculo(playerid);
public VerificarVeiculo(playerid)
{
for(new c = 0; c <= 4; c++)
{
if(IsPlayerInVehicle(playerid, VCAMINHONEIRO[c]) && PlayerInfo[playerid][CAMINHONEIRO] < 1)
{
SendClientMessage(playerid, -1, "Vocк nгo й Caminhoneiro");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
return 1;
}
C:\Users\dade\Desktop\Gamemode levado a sйrio\gamemodes\profcaminhoneiro.pwn(126) : error 017: undefined symbol "PlayerInfo"
C:\Users\dade\Desktop\Gamemode levado a sйrio\gamemodes\profcaminhoneiro.pwn(126) : warning 215: expression has no effect
C:\Users\dade\Desktop\Gamemode levado a sйrio\gamemodes\profcaminhoneiro.pwn(126) : error 001: expected token: ";", but found "]"
C:\Users\dade\Desktop\Gamemode levado a sйrio\gamemodes\profcaminhoneiro.pwn(126) : error 029: invalid expression, assumed zero
C:\Users\dade\Desktop\Gamemode levado a sйrio\gamemodes\profcaminhoneiro.pwn(126) : 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.
Vocк estб usando uma variбvel compactada com uma matriz que nгo existe.
Existe isso? PHP код:
|
C:\Users\dade\Desktop\Gamemode levado a sйrio\gamemodes\GTANOVAVIDA.pwn(197) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
if(IsPlayerInVehicle(playerid, VCAMINHONEIRO[c]) && PlayerInfo[playerid][CAMINHONEIRO] < 1)
enum PlayerInfo
{
CAMINHONEIRO,
VCAMINHONEIRO,
TAXISTA
}
new Profs[MAX_PLAYERS][PlayerInfo];
new Profs[MAX_PLAYERS][PlayerInfo];
PlayerInfo[playerid][CAMINHONEIRO]