15.07.2016, 15:50
Hola. Miren por que me sale este error
Este es el comando
este es la linea donde me sale el error
Gracias de antemano
PHP код:
error 035: argument type mismatch (argument 2)
PHP код:
COMMAND:blindar(playerid,params[]) {
if(IsPlayerInRangeOfPoint(playerid,10.0,-520.3521,-542.9661,25.5234)||IsPlayerInRangeOfPoint(playerid,10.0,-529.3309,-542.4465,25.5234)||IsPlayerInRangeOfPoint(playerid,10.0,2827.2461,898.7164,10.3662)||IsPlayerInRangeOfPoint(playerid,10.0,2818.1323,898.2374,10.3262)||IsPlayerInRangeOfPoint(playerid,10.0,2079.1865,-2007.0778,13.5469)||IsPlayerInRangeOfPoint(playerid,10.0,2078.6946,-2020.3425,13.5469))
{
new Minutos;
if(sscanf(params,"d", Minutos)) return SendClientMessage(playerid, Rojo, "Utiliza /Blindar <Minutos>");
if(Minutos <= 0 || Minutos > 50) return SendClientMessage(playerid, COLOR_RED, "No puedes hacer esto");
new Total = Minutos*200000;
if(Informacion[playerid][pCash] <= Total) return SendClientMessage(playerid, Rojo, "Usted no tiene suficiente dinero!.");
SetPlayerCash(playerid, -Total);
new string[128];
format( string, sizeof string, "Usted ha rentado blindado de vehiculo por %d Minutos!. (Total: %d)", Minutos, Total);
SendClientMessage(playerid, Verde, string);
SendClientMessage(playerid, Amarillo, "Utiliza "Insertnaranja"/vllave "Insertamarillo"para "Insertrojo"bloquear y "Insertverde"desbloquear "Insertamarillo"tu vehiculo!");
Informacion [playerid][pBlindado] = true;
Informacion [playerid][pBlindadoTime] = SetTimerEx("TerminarRenta", Minutos*60*1000, false, "d", playerid);
}else return SendClientMessage(playerid,"Usted no esta en un puesto para instalar blindaje.");
return 1;
}
PHP код:
}else return SendClientMessage(playerid,"Usted no esta en un puesto para instalar blindaje.");