Unknown Command after a Command. -
So i type my command, and it works so dont think im a very big noob from the title. Its when ever i click a button in my dialog is when i recieve the unkown command. But it still works.
Код:
if(dialogid == 12)
{
if(response == 1)
{
if(listitem == 0)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(411, x,y,z, a, -1, -1, -1);
}
if(listitem == 1)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(562, x,y,z, a, -1, -1, -1);
}
if(listitem == 2)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(400, x,y,z, a, -1, -1, -1);
}
if(listitem == 3)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(401, x,y,z, a, -1, -1, -1);
}
if(listitem == 4)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(402, x,y,z, a, -1, -1, -1);
}
if(listitem == 5)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(403, x,y,z, a, -1, -1, -1);
}
if(listitem == 6)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(404, x,y,z, a, -1, -1, -1);
}
if(listitem == 7)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(405, x,y,z, a, -1, -1, -1);
}
if(listitem == 8)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(406, x,y,z, a, -1, -1, -1);
}
if(listitem == 9)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(407, x,y,z, a, -1, -1, -1);
}
if(listitem == 10)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(408, x,y,z, a, -1, -1, -1);
}
if(listitem == 11)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(409, x,y,z, a, -1, -1, -1);
}
if(listitem == 12)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(410, x,y,z, a, -1, -1, -1);
}
if(listitem == 13)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(412, x,y,z, a, -1, -1, -1);
}
if(listitem == 14)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(413, x,y,z, a, -1, -1, -1);
}
if(listitem == 15)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(414, x,y,z, a, -1, -1, -1);
}
if(listitem == 16)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(415, x,y,z, a, -1, -1, -1);
}
if(listitem == 17)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(416, x,y,z, a, -1, -1, -1);
}
if(listitem == 18)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(417, x,y,z, a, -1, -1, -1);
}
if(listitem == 19)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(418, x,y,z, a, -1, -1, -1);
}
if(listitem == 20)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(419, x,y,z, a, -1, -1, -1);
}
if(listitem == 21)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(420, x,y,z, a, -1, -1, -1);
}
}
}
Re: Unknown Command after a Command. -