SA-MP Forums Archive
Sistema de autos en venta ayuda - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Sistema de autos en venta ayuda (/showthread.php?tid=549095)



Sistema de autos en venta ayuda - Lanzik - 04.12.2014

Hola mire esta guia - https://sampforum.blast.hk/showthread.php?tid=154896
pero no me funciona porque mi gm es desde 0% me ayudan a poner autos en venta en mi servidor gracias


Respuesta: Sistema de autos en venta ayuda - jotajeda - 04.12.2014

Que es lo que no te funciona?, dartelo haciendo no creo, tendrнas que irte a la secciуn de pedidos, pero se puede ayudar a corregir problemas, etc.


Re: Sistema de autos en venta ayuda - Lanzik - 04.12.2014

lo primero como creo esta linea
public IsAnOwnableCar(vehicleid)


Re: Sistema de autos en venta ayuda - Lanzik - 04.12.2014

lo cree asi

Quote:

public IsAnOwnableCar(vehicleid)
{
if(vehicleid >= 100 && vehicleid <= 350) { return 1; }
return 1;
}

me sale estos warning:
Quote:

C:\Users\Usuario\Desktop\NewParadise\gamemodes\ZSR 2P.pwn(12370) : warning 235: public function lacks forward declaration (symbol "IsAnOwnableCar")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.




Respuesta: Sistema de autos en venta ayuda - jotajeda - 04.12.2014

pawn Код:
forward IsAnOwnableCar(vehicleid);
public IsAnOwnableCar(vehicleid)
{
    funciones
    //mas
    //mas
    return true;
}



Re: Sistema de autos en venta ayuda - Lanzik - 04.12.2014

errores
Quote:

C:\Users\Usuario\Desktop\NewParadise\gamemodes\ZSR 2P.pwn(12373) : error 017: undefined symbol "funciones"
C:\Users\Usuario\Desktop\NewParadise\gamemodes\ZSR 2P.pwn(12373 -- 12376) : warning 215: expression has no effect
C:\Users\Usuario\Desktop\NewParadise\gamemodes\ZSR 2P.pwn(12376) : error 001: expected token: ";", but found "return"
C:\Users\Usuario\Desktop\NewParadise\gamemodes\ZSR 2P.pwn(1237 : warning 203: symbol is never used: "CarInfo"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.




Re: Sistema de autos en venta ayuda - Lanzik - 04.12.2014

Lo puse asi y me da 0 errores
Quote:

forward IsAnOwnableCar(vehicleid);
public IsAnOwnableCar(vehicleid)
{
return true;
}

Ahora donde pongo esto?
Una vez completado esto buscamos esta otra linea

Quote:
Quote:

new carinfo

Al buscar esa nos saldra algo como esto:
Quote:
Quote:

new CarInfo[350][cInfo];

(tu tendras otros numeros estos los puse yo de ejemplo)


Respuesta: Re: Sistema de autos en venta ayuda - jotajeda - 04.12.2014

Quote:
Originally Posted by Lanzik
Посмотреть сообщение
errores
A las funciones me refiero que allн pongas las funciones/condicionales, etc
ejemplo:
pawn Код:
if(vehicleid >= 100 && vehicleid <= 350) { return 1; }



Re: Sistema de autos en venta ayuda - Lanzik - 04.12.2014

vale, lo puse asi
Quote:

forward IsAnOwnableCar(vehicleid);
public IsAnOwnableCar(vehicleid)
{
if(vehicleid >= 474 && vehicleid <= 1) { return 1; }
if(vehicleid >= 439 && vehicleid <= 2) { return 1; }
if(vehicleid >= 457 && vehicleid <= 3) { return 1; }
if(vehicleid >= 482 && vehicleid <= 4) { return 1; }
if(vehicleid >= 567 && vehicleid <= 5) { return 1; }
if(vehicleid >= 566 && vehicleid <= 6) { return 1; }
if(vehicleid >= 579 && vehicleid <= 7) { return 1; }
if(vehicleid >= 578 && vehicleid <= { return 1; }
if(vehicleid >= 554 && vehicleid <= 9) { return 1; }
if(vehicleid >= 543 && vehicleid <= 10) { return 1; }
if(vehicleid >= 489 && vehicleid <= 11) { return 1; }
if(vehicleid >= 521 && vehicleid <= 12) { return 1; }

return true;
}




Respuesta: Re: Sistema de autos en venta ayuda - jotajeda - 04.12.2014

Quote:
Originally Posted by Lanzik
Посмотреть сообщение
vale, lo puse asi
Esta mal, los id de los vehiculos van desde el 400 hasta el 600.