Need Help!! [ASAP]
#5

Ughhm, Im very noob at this may someone just make it work.
This is the error line.
Code:
            if(IsPlayerInAnyVehicle(playerid))
            {
                    new State=GetPlayerState(playerid);
                    if(State!=PLAYER_STATE_DRIVER)
                    {
                            SendClientMessage(playerid,0xFF004040,"You can only unlock the doors as the driver.");
                            return 1;
                    }
                    new i;
                    for(i=0;i<MAX_PLAYERS;i++)
                    {
                            SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0);
                    }
                    SendClientMessage(playerid, 0x33AA33AA, "Vehicle unlocked!");
                    new Float:pX, Float:pY, Float:pZ;
                    GetPlayerPos(playerid,pX,pY,pZ);
                    PlayerPlaySound(playerid,1057,pX,pY,pZ);
            }
            else
            {
            SendClientMessage(playerid, 0xFF004040, "You're not in a vehicle!");
            }
            return 1;
    }
        dcmd(ar, 2, cmdtext);
	dcmd(autorepair, 10, cmdtext);
	return 0;

	}
            return 1;      <=========== THAT IS LINE 175 / MAYBE SOMETHING UP THERE IS WRONG?
    }
Reply


Messages In This Thread
Need Help!! [ASAP] - by [PDS]DarioKeic - 18.03.2012, 21:42
Re: Need Help!! [ASAP] - by Jonny5 - 18.03.2012, 21:52
Re: Need Help!! [ASAP] - by [PDS]DarioKeic - 18.03.2012, 21:56
Re: Need Help!! [ASAP] - by Jonny5 - 18.03.2012, 22:02
Re: Need Help!! [ASAP] - by [PDS]DarioKeic - 18.03.2012, 22:07
Re: Need Help!! [ASAP] - by Georgi166 - 18.03.2012, 22:14
Re: Need Help!! [ASAP] - by [PDS]DarioKeic - 18.03.2012, 22:15
Re: Need Help!! [ASAP] - by Jonny5 - 18.03.2012, 22:17
Re: Need Help!! [ASAP] - by Kudoz - 18.03.2012, 22:20

Forum Jump:


Users browsing this thread: 1 Guest(s)