Sistema de autos en venta ayuda
#1

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
Reply
#2

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.
Reply
#3

lo primero como creo esta linea
public IsAnOwnableCar(vehicleid)
Reply
#4

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.

Reply
#5

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

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.

Reply
#7

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)
Reply
#8

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; }
Reply
#9

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;
}

Reply
#10

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


Forum Jump:


Users browsing this thread: 2 Guest(s)