public ADMcarro(playerid)
{
for(new c = 0; c <= 14; c++)
{
if(IsPlayerInVehicle(playerid, CarrosAdm[c]) && PlayerDados[playerid][Helper] == false || PlayerDados[playerid][Admin] < 1)
{
RemovePlayerFromVehicle(playerid);
Msg(playerid, CINZA, "[ERRO] Veiculos apenas para administradores.");
}
}
}
public ADMcarro(playerid)
{
for(new c = 0; c <= 14; c++)
{
if(IsPlayerInVehicle(playerid, CarrosAdm[c]) && PlayerDados[playerid][Helper] == false || PlayerDados[playerid][Admin] < 1)
{
RemovePlayerFromVehicle(playerid);
Msg(playerid, CINZA, "[ERRO] Veiculos apenas para administradores.");
}
}
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER) {
CarrosAdm(playerid);}//diz que e nessa linha
return 1;
}
GAMEMODE.pwn(907) : error 012: invalid function call, not a valid address GAMEMODE.pwn(907) : warning 215: expression has no effect GAMEMODE.pwn(907) : error 001: expected token: ";", but found ")" GAMEMODE.pwn(907) : error 029: invalid expression, assumed zero GAMEMODE.pwn(907) : fatal error 107: too many error messages on one line
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { CarrosAdm(playerid); } return 1; }
CarrosAdm(playerid);
CarrosAdm[playerid];
Cara isso depende!
Se foi Criado como callback ou variavel. Exemplo: new CarrosAdm[MAX_PLAYERS]; ou forward CarrosAdm(playerid); |
public ADMcarro(playerid)
{
for(new c = 0; c <= 14; c++)
{
if(IsPlayerInVehicle(playerid, CarrosAdm[c]) && PlayerDados[playerid][Helper] == false || PlayerDados[playerid][Admin] < 1)
{
RemovePlayerFromVehicle(playerid);
Msg(playerid, CINZA, "[ERRO] Veiculos apenas para administradores.");
}
}
}
CarrosAdm[c]
CarrosAdm(playerid);
CarrosAdm[playerid];
CarrosAdm[14] para CarrosAdm[playerid]
public ADMcarro(playerid)
{
for(new c = 0; c <= 14; c++)
{
if(IsPlayerInVehicle(playerid, CarrosAdm[c]) && PlayerDados[playerid][Helper] == false || PlayerDados[playerid][Admin] < 1)
{
RemovePlayerFromVehicle(playerid);
Msg(playerid, CINZA, "[ERRO] Veiculos apenas para administradores.");
}
}
return 1;
}
public ADMcarro(playerid)
{
for(new c = 0; c <= 14; c++)
{
if(IsPlayerInVehicle(playerid, CarrosAdm[c]) && PlayerDados[playerid][Helper] == false || PlayerDados[playerid][Admin] < 1)
{
RemovePlayerFromVehicle(playerid);
Msg(playerid, CINZA, "[ERRO] Veiculos apenas para administradores.");
}
}
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER) CarrosAdm(playerid);
return 1;
}