Neons for neon system not showing
#1

Hello i scripted my own neon system but for some reason they wont show I'm useing a object streamer for the object it works fine on my test server but on my main server nothing shows why is this? heres my script


Код:
if (strcmp(cmdtext, "/installneon", true) == 0)
	{

	if(IsPlayerInAnyVehicle(playerid))
	{
		if(PlayerInfo[playerid][pJob] == 7)
	    	{
	    		if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0x40FF00FF, "You dont have enough Money for neons");
                GivePlayerMoney(playerid, -5000);
                DisplayDialogForPlayer(playerid, 61);
     	    }
    	    else
            {
                SendClientMessage(playerid, COLOR_GREY, "   You are not a Mechanic !");
            }

	    	}
	    	else
	    	{
	    	    SendClientMessage(playerid, COLOR_GREY, "   You are not in  vehicle !");
	    	}

	return 1;
	}
Код:
if(dialogid == 8899)
	{
		if(response)
		{
			if(listitem == 0)
			{


			//blue
	
            SetPVarInt(playerid, "neon", CreateDynamicObject(18648,0,0,0,0,0,0,-1,-1,-1,200.0));
            SetPVarInt(playerid, "neon1", CreateDynamicObject(18648,0,0,0,0,0,0,-1,-1,-1,200.0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
   			 }
			if(listitem == 1)
			{


			 //red
			
	            SetPVarInt(playerid, "neon2", CreateDynamicObject(18647,0,0,0,0,0,0,-1,-1,-1,200.0));
	            SetPVarInt(playerid, "neon3", CreateDynamicObject(18647,0,0,0,0,0,0,-1,-1,-1,200.0));
	            AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
	            AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
	            SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");

            }
			if(listitem == 2)
			{


			//green
		   	 
	            SetPVarInt(playerid, "neon4", CreateDynamicObject(18649,0,0,0,0,0,0,-1,-1,-1,200.0));
	            SetPVarInt(playerid, "neon5", CreateDynamicObject(18649,0,0,0,0,0,0,-1,-1,-1,200.0));
	            AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
	            AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
	            SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");

	        }
			if(listitem == 3)
			{

			//white
		   	   
	            SetPVarInt(playerid, "neon6", CreateDynamicObject(18652,0,0,0,0,0,0,-1,-1,-1,200.0));
	            SetPVarInt(playerid, "neon7", CreateDynamicObject(18652,0,0,0,0,0,0,-1,-1,-1,200.0));
	            AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
	            AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
	            SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");

            }
			if(listitem == 4)
			{


			//pink
		   	   
	            SetPVarInt(playerid, "neon8", CreateDynamicObject(18651,0,0,0,0,0,0,-1,-1,-1,200.0));
	            SetPVarInt(playerid, "neon9", CreateDynamicObject(18651,0,0,0,0,0,0,-1,-1,-1,200.0));
	            AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
	            AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
	            SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");

            }
			if(listitem == 5)
			{


			//yellow
  			//	SetPVarInt(playerid, "Status", 1);
	            SetPVarInt(playerid, "neon10", CreateDynamicObject(18650,0,0,0,0,0,0,-1,-1,-1,200.0));
	            SetPVarInt(playerid, "neon11", CreateDynamicObject(18650,0,0,0,0,0,0,-1,-1,-1,200.0));
	            AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
	            AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
	            SendClientMessage(playerid, 0xFFFFFFAA, "neon installed");

            }
			
			if(listitem == 6)
			{
			   //remove neon
               DestroyDynamicObject(GetPVarInt(playerid, "neon"));
               DeletePVar(playerid, "Status");
               DestroyDynamicObject(GetPVarInt(playerid, "neon1"));
               DeletePVar(playerid, "Status");
               DestroyDynamicObject(GetPVarInt(playerid, "neon2"));
               DeletePVar(playerid, "Status");
               DestroyDynamicObject(GetPVarInt(playerid, "neon3"));
               DeletePVar(playerid, "Status");
               DestroyDynamicObject(GetPVarInt(playerid, "neon4"));
               DeletePVar(playerid, "Status");
               DestroyDynamicObject(GetPVarInt(playerid, "neon5"));
			   DeletePVar(playerid, "Status");
               DestroyDynamicObject(GetPVarInt(playerid, "neon6"));
               DeletePVar(playerid, "Status");
               DestroyDynamicObject(GetPVarInt(playerid, "neon7"));
               DeletePVar(playerid, "Status");
               DestroyDynamicObject(GetPVarInt(playerid, "neon8"));
               DeletePVar(playerid, "Status");
               DestroyDynamicObject(GetPVarInt(playerid, "neon9"));
               DeletePVar(playerid, "Status");

	 	      }
		 }
    }
like i said they work fine in the test server i have running though my router to test my scripts but when i put it on the main server (With the streamer plugin and everything working, but the neons wont show) the neons wont show...what am i doing wrong?
Код:
ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, "Pick Neon Color", "Blue\nRed\nGreen\nWhite\nPink\nYellow\nRemove", "Select", "Cancel");
Reply
#2

Maybe these are stupid questions, but
Is your main server running version 0.3c?
Is your main server using a cmdsystem like ycmd or zcmd? This could block your strcmp command if you paste it behind the cmdsystem stuff.
Reply
#3

Yes im useing 0.3c and the command works it shows me the dialog and everything just fine but when i select a neon it wont show.
Reply
#4

Hm, stupid questions then

Do other new 0.3c objects work on the server? If not, are at least some of the new objects working, or none at all?
Reply
#5

All except the neons so far...sometimes the neons will work some times they wont :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)