Command not working .
#1

Hmm oke. i scripted this command :

Код:
if(strcmp(cmdtext, "/v get", true) == 0)
		{
		  if(IsPlayerConnected(playerid))
			{
			  new playername[MAX_PLAYER_NAME];
				GetPlayerName(playerid, playername, sizeof(playername));
				if(PlayerInfo[playerid][pCarKey] == 255)
				{
					SendClientMessage(playerid, COLOR_GREY, "You don't own a car to get it.");
					return 1;
				}
				if(PlayerInfo[playerid][pCarKey] != 255 && strcmp(playername, Cars[PlayerInfo[playerid][pCarKey]][cOwner], true) == 0)
				{
					new car = PlayerInfo[playerid][pCarKey];
					new Float:pX1,Float:pY1,Float:pZ1;
					GetPlayerPos(playerid,pX1,pY1,pZ1);
					SetVehiclePos(car, pX1, pY1, pZ1);
					GivePlayerRM(playerid,-1337);
					SendClientMessage(playerid, COLOR_GREEN, "TRUCK COMPANY : Here is your car, thank you sir !");
					PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
					return 1;
				}
			}
			return 1;
		}
It was working, but not anymore, no idea why
Thanks !
Reply


Messages In This Thread
Command not working . - by Takumi.WS - 19.09.2009, 14:50
Re: Command not working . - by vection - 19.09.2009, 15:01
Re: Command not working . - by ded - 19.09.2009, 16:25
Re: Command not working . - by brett7 - 19.09.2009, 16:28
Re: Command not working . - by ded - 19.09.2009, 16:29

Forum Jump:


Users browsing this thread: 2 Guest(s)