[HELP]My /v spawn1 not working
#1

when i do /v spawn1 and i go ingame i do /v spawn1 nothing happens it is suposed to be spawn ur vehicle but nothing happens heres my command
Код:
    else if(strcmp(x_nr,"spawn1",true) == 0)
       {
       new carid;
       new getcarid;
	  
		if(CarInfo[carid][cOwned] == 1)
{
 if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 & PlayerInfo[playerid][pPcarkey3])
{
SendClientMessage(playerid, COLOR_GREY, "You don't own a car.");
return 1;
}
if(getcarid == carid)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
format(string, sizeof(string), "~n~ You have spawned your vehicle in this location. ~n~");
GameTextForPlayer(playerid, "You have spawned your vehicle in this location. It will respawn here.", 10000, 3);
OnPropUpdate();
OnPlayerUpdate(playerid);
TogglePlayerControllable(playerid, 1);
	return 1;
  					}
				}
	    }
Reply
#2

anyone?
Reply
#3

If this is a godfather question, ask in the godfather thread.

Also, it may be that you don't assign "carid" to a value, and are using it to check if the player owns that specific car. (which in this case would be "0", since you never set it to a different value)
Reply
#4

Bump
Reply
#5

Quote:
Originally Posted by Swift_
If this is a godfather question, ask in the godfather thread.

Also, it may be that you don't assign "carid" to a value, and are using it to check if the player owns that specific car. (which in this case would be "0", since you never set it to a different value)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)