01.09.2010, 14:27
(
Последний раз редактировалось [XST]O_x; 01.09.2010 в 14:40.
)
You've put ; in the end of the public callback,which may cause crashes.
Should be
And,pName is a string,so it must contain square brackets at the very least.
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.
And,another error I found,you should format pVehicle,not define it with '='.
Like this:
And,you can't create natives just like that,they must be commented.
Therefore you will also need to forward your function.
pawn Код:
public CreatePrivateVehicle(pName,id,x,y,z,r,c1,c2);
pawn Код:
public CreatePrivateVehicle(pName,id,x,y,z,r,c1,c2)
pawn Код:
public CreatePrivateVehicle(pName[],id,x,y,z,r,c1,c2)
Also,pVehicle is a string,so the variable should contain cells.
pawn Код:
new pVehicle[MAX_VEHICLES][38];
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;
}
Therefore you will also need to forward your function.