[Ajuda] erro nesses comandos
#1

estou com erros nesses comandos alguem pode concertar pra mim ?

Quote:

if (strcmp("/motoron", cmdtext, true, 10) == 0)
{
new mot, lu, alar, por, cap, porma, ob;
new carro = GetPlayerVehicleID(playerid);
if(carro != INVALID_VEHICLE_ID)
{
if(motor[playerid] == 0)
{
GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
SetVehicleParamsEx(carro, VEHICLE_PARAMS_ON, lu, alar, por, cap, porma, ob);
motor[playerid] = 1;
SendClientMessage(playerid, 0xFFFFFFAA, "Veiculo {2F991A}Ligado!");
}
}
}
if (strcmp("/motoroff", cmdtext, true, 10) == 0)
{
new mot, lu, alar, por, cap, porma, ob;
new carro = GetPlayerVehicleID(playerid);
if(carro != INVALID_VEHICLE_ID)
{
if(motor[playerid] == 1)
{
GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
SetVehicleParamsEx(carro, VEHICLE_PARAMS_OFF, lu, alar, por, cap, porma, ob);
motor[playerid] = 0;
SendClientMessage(playerid, 0xFFFFFFAA, "Veiculo {E31919}Desligado!");
}
}
}

Quote:

C:\Users\360°\Desktop\Servidor de SAMP\CODANDO NOVO GM\gamemodes\PlayFacil.pwn(2298 : error 017: undefined symbol "motor"
C:\Users\360°\Desktop\Servidor de SAMP\CODANDO NOVO GM\gamemodes\PlayFacil.pwn(2298 : warning 215: expression has no effect
C:\Users\360°\Desktop\Servidor de SAMP\CODANDO NOVO GM\gamemodes\PlayFacil.pwn(2298 : error 001: expected token: ";", but found "]"
C:\Users\360°\Desktop\Servidor de SAMP\CODANDO NOVO GM\gamemodes\PlayFacil.pwn(2298 : error 029: invalid expression, assumed zero
C:\Users\360°\Desktop\Servidor de SAMP\CODANDO NOVO GM\gamemodes\PlayFacil.pwn(2298 : fatal error 107: too many error messages on one line

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


4 Errors.

Reply
#2

Topo do gamemode
Код:
 new motor[MAX_PLAYERS];
Reply
#3

obrigado Gui eu ja tinha resolvido antes, so nгo podia fazer double post, mas vlw mesmo !!!!!!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)