CreateVehicle & CreateObject dont work in a custom callback
#1

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)