[+REP] STCMP to ZCMD Convert
#5

Quote:
Originally Posted by Wizzy951
Посмотреть сообщение
Check the tutorial in my signature, I hope it will help you.
I always got errors while compiling!

I am a real newbie and its really hard to convert the command like this:

Код:
 if (strcmp(cmd, "/newbuycar", true) ==0 )
	{
	if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid, WHITE, "You are not allowed to use this command!");
	tmp = strtok(cmdtext,idx);
	if(!strlen(tmp)){return 1;}
	new vehiclemodel = strval(tmp);
	tmp = strtok(cmdtext,idx);
	if(!strlen(tmp)){return 1;}
	new color1 = strval(tmp);
	tmp = strtok(cmdtext,idx);
	if(!strlen(tmp)){return 1;}
	new color2 = strval(tmp);
	tmp = strtok(cmdtext,idx);
	if(!strlen(tmp)){return 1;}
	new price = strval(tmp);
	new Float:px,Float:py,Float:pz,Float:pa;
	GetPlayerPos(playerid,px,py,pz);
	GetPlayerFacingAngle(playerid,pa);
	created++;
	VehicleSystem[created][model]=vehiclemodel;
	VehicleSystem[created][x]=px;
	VehicleSystem[created][y]=py;
	VehicleSystem[created][z]=pz;
	VehicleSystem[created][a]=pa;
	VehicleSystem[created][Farbe1]=color1;
	VehicleSystem[created][Farbe2]=color2;
	VehicleSystem[created][preis]=price;
	VehicleSystem[created][owned]=0;
	VehicleSystem[created][cLock]=1;
	strmid(VehicleSystem[created][owner],"dealercar",0,128,128);
	new ccar = CreateVehicle(VehicleSystem[created][model],VehicleSystem[created][x],VehicleSystem[created][y],VehicleSystem[created][z],VehicleSystem[created][a],VehicleSystem[created][Farbe1],VehicleSystem[created][Farbe2],600000);
	IDIS[ccar]=created;
	SaveTool();
	return 1;
	}
Reply


Messages In This Thread
[+REP] STCMP to ZCMD Convert - by SplinteX - 18.12.2013, 20:27
Re: [+REP] STCMP to ZCMD Convert - by Mattakil - 18.12.2013, 21:00
Re: [+REP] STCMP to ZCMD Convert - by SplinteX - 18.12.2013, 21:02
Re: [+REP] STCMP to ZCMD Convert - by Wizzy951 - 18.12.2013, 21:40
Re: [+REP] STCMP to ZCMD Convert - by SplinteX - 18.12.2013, 22:03
Re: [+REP] STCMP to ZCMD Convert - by BlackWolf120 - 18.12.2013, 22:11
Re: [+REP] STCMP to ZCMD Convert - by Mattakil - 18.12.2013, 22:16
Re: [+REP] STCMP to ZCMD Convert - by Tayab - 18.12.2013, 22:21
Re: [+REP] STCMP to ZCMD Convert - by SplinteX - 18.12.2013, 22:27
Re: [+REP] STCMP to ZCMD Convert - by Tayab - 18.12.2013, 22:32

Forum Jump:


Users browsing this thread: 1 Guest(s)