commandtext....
#4

just started, relaxt man.

But that wont work, got 2 errors, tryed it like this to, but even wont work:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
 {
  if(!strcmp(cmdtext,"/fix",true)) {
    if(IsPlayerAdmin(playerid) && IsPlayerInAnyVehicle(playerid)) {
      SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
    } else {
      SendClientMessage(playerid,COLOR_CRED,"You must be an administrator AND be inside a vehicle to use this command.");
    }
    return 1;
  }
  if(!strcmp("/Enter", cmdtext, true) && PlayerToPoint(1.5 ,playerid,252.8745,-92.3390,3.5354))
  {
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,262.1704,-84.3840,65.1329);
CreatePickup(1239,2,252.8745,-92.3390,3.5354);
return 1;
  }
  if(!strcmp("/Exit", cmdtext, true) && PlayerToPoint(1.5 ,playerid,262.1704,-84.3840,65.1329))
 {
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,252.8745,-92.3390,3.5354);
return 1;
 }
 return 0;
}
got those errors:
Код:
C:\Users\thuron\Desktop\SIR server\gamemodes\SIRRP.pwn(440) : warning 217: loose indentation
C:\Users\thuron\Desktop\SIR server\gamemodes\SIRRP.pwn(446) : warning 217: loose indentation
instead of telling me to search wiki, tell me rks!
Reply


Messages In This Thread
commandtext.... - by thuron - 04.03.2009, 20:12
Re: commandtext.... - by ICECOLDKILLAK8 - 04.03.2009, 20:13
Re: commandtext.... - by Rks25 - 04.03.2009, 20:33
Re: commandtext.... - by thuron - 05.03.2009, 12:23
Re: commandtext.... - by [RP]Rav - 05.03.2009, 12:25
Re: commandtext.... - by thuron - 05.03.2009, 12:32

Forum Jump:


Users browsing this thread: 2 Guest(s)