PLEASE help with this cmdd
#1

Whats wrong here the object doesnt createeee !
AND the message "From now on this will be you safe location"
works its send it but OBJECT DOESNT CREATEEE
Код:
else if(strcmp(x_nr,"place",true) == 0)
	    {
	      if(PlayerInfo[playerid][pFMember] < 255 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 14)
      	{
					if(PlayerInfo[playerid][sOwnSafe] != 999)
				 	{
				 	  new Float:SX, Float:SY, Float:SZ, Float:SA;
						GetPlayerFacingAngle(playerid, SA);
						GetPlayerPos(playerid,SX,SY,SZ);
						PlayerInfo[playerid][sSafe] = CreateObject(2332,SX,SY,SZ, 0.0, 0.0, 0.0);
						PlayerInfo[playerid][sSafex] = SX;
				 	  PlayerInfo[playerid][sSafey] = SY;
				 	  PlayerInfo[playerid][sSafez] = SZ;
						SendClientMessage(playerid,COLOR_YELLOW,"From now on this will be you safe location");
						OnPlayerUpdate(playerid);
				  	}
				  else {
				  SendClientMessage(playerid,COLOR_ORANGE,"You already own a safe");
				  }
				}
				else {
				SendClientMessage(playerid,COLOR_ORANGE,"You must be part or gang/family");
				}
	    }
Reply
#2

Quote:
Originally Posted by kingforyou
Whats wrong here the object doesnt createeee !
AND the message "From now on this will be you safe location"
works its send it but OBJECT DOESNT CREATEEE
Код:
else if(strcmp(x_nr,"place",true) == 0)
	    {
	      if(PlayerInfo[playerid][pFMember] < 255 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 14)
      	{
					if(PlayerInfo[playerid][sOwnSafe] != 999)
				 	{
				 	  new Float:SX, Float:SY, Float:SZ, Float:SA;
						GetPlayerFacingAngle(playerid, SA);
						GetPlayerPos(playerid,SX,SY,SZ);
						CreateObject(2332,SX,SY,SZ, 0.0, 0.0, 0.0);
						PlayerInfo[playerid][sSafex] = SX;
				 	  PlayerInfo[playerid][sSafey] = SY;
				 	  PlayerInfo[playerid][sSafez] = SZ;
						SendClientMessage(playerid,COLOR_YELLOW,"From now on this will be you safe location");
						OnPlayerUpdate(playerid);
				 	}
				  else {
				  SendClientMessage(playerid,COLOR_ORANGE,"You already own a safe");
				  }
				}
				else {
				SendClientMessage(playerid,COLOR_ORANGE,"You must be part or gang/family");
				}
	    }
Should work.
Reply
#3

i got my broblem i had to take Angel too so now its work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)