01.09.2015, 12:48
(
Последний раз редактировалось Sn4ke2; 01.09.2015 в 14:03.
)
Hey everybody, i make a comand /work to can work with one of for vehicle but i get an error
here is the CMD:
And i want when a pleyer type /work to give one of this for vehicle's
And the error
Thank you
here is the CMD:
PHP код:
MD:work(playerid,params[])
{
if(IsPlayerConnected(playerid))
{
if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2214.9500,2123.5903,10.8203))
{
if(PlayerInfo[playerid][pJob] != 4) return SCM(playerid,COLOR_WHITE,"{FFF8C6}Tu nu esti Drugs Dealer.");
DisablePlayerCheckpoint(playerid);
new
Float:dx,Float:dy,Float:dz,Float:pos;
GetPlayerPos(playerid,dx,dy,dz);
GetPlayerFacingAngle(playerid,pos);
new dCar = CreateVehicle(dCarID[0][],dx,dy,dz,pos,-1,-1,-1);
PutPlayerInVehicle(playerid,dCar,0);
CP[playerid] = 12;
SetPlayerCheckpoint(playerid,0.0,0.0,0.0,3.0);
}
}
return 1;
}
PHP код:
new dCarID[4][] = {
{440},
{459},
{482},
{499}
};
PHP код:
New.pwn(37168) : error 029: invalid expression, assumed zero