help plz with error "OnPlayerCommandText" should return a value error
#4

Fear, please mind the indentation!
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext, "/Nrgball", true) == 0)
  {
   
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 522)
    {
      SendClientMessage(playerid, COLOR_RED, "Welcome to the ball");
      SetVehiclePos(GetPlayerVehicleID(playerid), -1299.1689,-98.2901,14.9644);
      SetVehicleZAngle(GetPlayerVehicleID(playerid), 3.872666);
      LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    }
    return 1;
  }
  return 0;
}
This looks better(easier to read) and avoids chance of not working thanks to blurred indentation.
Reply


Messages In This Thread
help plz with error "OnPlayerCommandText" should return a value error - by alex011 - 01.03.2009, 00:22
Re: help plz with error "OnPlayerCommandText" should return a value error - by Towlies - 01.03.2009, 05:51
Re: help plz with error "OnPlayerCommandText" should return a value error - by tehcudguy - 01.03.2009, 07:21
Re: help plz with error "OnPlayerCommandText" should return a value error - by Rks25 - 01.03.2009, 10:22

Forum Jump:


Users browsing this thread: 1 Guest(s)