SA-MP Forums Archive
CreateVehicle & CreateObject dont work in a custom callback - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CreateVehicle & CreateObject dont work in a custom callback (/showthread.php?tid=383854)



CreateVehicle & CreateObject in a custom callback[SOLVED] - park4bmx - 09.10.2012

ok for some reason the CreateVehicle & CreateObject dont work in the my custume callback
PHP код:
forward CreateVeh(playerid,pX,pY,pZ);
public 
CreateVeh(playerid,pX,pY,pZ)
{
    
CreateVehicle(451pX,pY,pZ+7000199999999);
    print(
"Create veh");
    return 
1;

and it displays the print yes
same thing with the Create object.
Also i chech the position's and yes they are all fine.

EDIT
SOVLED
well i forgot to add the floats to the callback


Re: CreateVehicle & CreateObject dont work in a custom callback - Roel - 09.10.2012

Usage:
pawn Код:
forward CreateVeh(playerid,Float:pX,Float:pY,Float:pZ);
public CreateVeh(playerid,Float:pX,Float:pY,Float:pZ)
{
    CreateVehicle(451, pX,pY,pZ+70, 0, 0, 1, 99999999);
    print("Create veh");
    return 1;
}



Re: CreateVehicle & CreateObject dont work in a custom callback - park4bmx - 09.10.2012

Quote:
Originally Posted by Roel
Посмотреть сообщение
Usage:
pawn Код:
forward CreateVeh(playerid,Float:pX,Float:pY,Float:pZ);
public CreateVeh(playerid,Float:pX,Float:pY,Float:pZ)
{
    CreateVehicle(451, pX,pY,pZ+70, 0, 0, 1, 99999999);
    print("Create veh");
    return 1;
}
well thank you, like i said already solved it