Disable the shop in dm and 2nd skin
#3

Thanks for your reply, I'll try to do it. Ah and yes the menu is opened via command.

The script. Something like this?

Код:
  if(strcmp(cmdtext, "/boxing", true) == 0)
  {
    if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n-Sorry But you can't Teleport to another area while in a dm. Type /kill to leave the DM.","OK","KILL ME");
    DMZone[playerid] = 1;
    	new rands = random(sizeof(RandomPlayerSpawns));
		SetPlayerPos(playerid, RandomPlayerSpawnsBoxing[rand][0], RandomPlayerSpawnsBoxing[rand][1], RandomPlayerSpawnsBoxing[rand][2]);
 		SetPlayerInterior(playerid, 0);
 		new rands = random(sizeof(80, 81));
 		new Skins[] = {80, 81};
		SetPlayerSkin(playerid, 80, 81[rand]);
           ResetPlayerWeapons(playerid);
		GameTextForPlayer(playerid, "~y~Boxing", 4000, 6);
   	return 1;
  }
I got these errors.
Код:
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\pawno\include\cps.inc(140) : warning 208: function with tag result used before definition, forcing reparse
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2136) : error 017: undefined symbol "rand"
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2138) : error 021: symbol already defined: "rands"
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2138) : error 020: invalid symbol name ""
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2138) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2138) : fatal error 107: too many error messages on one line
Reply


Messages In This Thread
Disable the shop in dm and 2nd skin - by Juanxz - 24.01.2010, 20:32
Re: Disable the shop in dm and 2nd skin - by lameguy - 25.01.2010, 12:52
Re: Disable the shop in dm and 2nd skin - by Juanxz - 26.01.2010, 07:29
Re: Disable the shop in dm and 2nd skin - by lameguy - 29.01.2010, 13:20
Re: Disable the shop in dm and 2nd skin - by Juanxz - 30.01.2010, 13:51

Forum Jump:


Users browsing this thread: 1 Guest(s)