Help making an include
#5

You've put ; in the end of the public callback,which may cause crashes.
pawn Код:
public CreatePrivateVehicle(pName,id,x,y,z,r,c1,c2);
Should be
pawn Код:
public CreatePrivateVehicle(pName,id,x,y,z,r,c1,c2)
And,pName is a string,so it must contain square brackets at the very least.

pawn Код:
public CreatePrivateVehicle(pName[],id,x,y,z,r,c1,c2)
And,I don't believe you can compare strings within only equal signs,use strcmp for that.

Also,pVehicle is a string,so the variable should contain cells.
pawn Код:
new pVehicle[MAX_VEHICLES][38];
And,another error I found,you should format pVehicle,not define it with '='.
Like this:
pawn Код:
public CreatePrivateVehicle(pName[],id,x,y,z,r,c1,c2)
{
    new v = AddStaticVehicle(id,x,y,z,r,c1,c2);
    format(pVehicle[v],38,"%s",pName);
    return 1;
}
And,you can't create natives just like that,they must be commented.
Therefore you will also need to forward your function.
Reply


Messages In This Thread
Help making an include - by gamer931215 - 01.09.2010, 13:57
Re: Help making an include - by DaneAMattie - 01.09.2010, 14:05
Re: Help making an include - by gamer931215 - 01.09.2010, 14:06
Re: Help making an include - by gamer931215 - 01.09.2010, 14:24
Re: Help making an include - by [XST]O_x - 01.09.2010, 14:27
Re: Help making an include - by Vince - 01.09.2010, 14:39
Re: Help making an include - by gamer931215 - 01.09.2010, 17:09
Re: Help making an include - by gamer931215 - 01.09.2010, 18:10
Re: Help making an include - by LarzI - 01.09.2010, 18:16
Re: Help making an include - by gamer931215 - 02.09.2010, 11:04

Forum Jump:


Users browsing this thread: 2 Guest(s)