command wont work
#1

why wont this work


Код:
	if(strcmp(cmd, "/car", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			new x_nr[32];
			x_nr = strtok(cmdtext, idx);
			if(!strlen(x_nr)) {
				SendClientMessage(playerid, COLOR_WHITE, "USAGE: /car [name]");
		  		SendClientMessage(playerid, COLOR_GRAD1, "Available names: engine, lights, trunk, status, fuel");
				return 1;
			}
			else if(strcmp(x_nr,"lights",true) == 0)
			{
    			new vid = GetPlayerVehicleID(playerid);
                GetVehicleParamsEx(vid ,engine,lights,alarm,doors,bonnet,boot,objective);
                if (lights==1)
                {
					SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
                }
                else
                {
                    SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
                }
                return 1;
            }

sorry how it looks it all ways copy over to samp forum shit
Reply


Messages In This Thread
command wont work - by yarrum3 - 04.01.2011, 01:49
Re: command wont work - by ToPhrESH - 04.01.2011, 02:47
Re: command wont work - by yarrum3 - 04.01.2011, 03:16
Re: command wont work - by Anthonyx3' - 04.01.2011, 03:20

Forum Jump:


Users browsing this thread: 1 Guest(s)