Help in creating 1VS1
#1

Код:
line 8044:new 1vs1;
line 8045:CMD:1vs1(playerid, params[])
line 8046:{
line 8047:            #pragma unused params
line 8048:            if(1vs1[playerid] == 2) return SCM(playerid,COLOR_RED,"1 VS 1 Arena is Full");
line 8049:            if(PlayerDuelWatching[playerid] == 1) return SCM(playerid,COLOR_RED," You can't use this command while watching duel /leavewatch");
line 8050:            if(challenge[playerid] == 1)
line 8051:            {
line 8052:            SendClientMessage(playerid, COLOR_RED, " please use /leave to leave the challenge.");
line 8053:            }
line 8054:            else
line 8055:            {
line 8056:			SendClientMessage(playerid, 0x00FFFFAA, "You've been teleported to 1vs1 DM.");
line 8057:            GameTextForPlayer(playerid,"~W~Welcome to~N~~R~~H~1vs1 DM~W~!",2000,3);
line 8058:            SetPlayerPos(playerid, 1778.7545,-2291.1230,26.7960);
line 8059:            SetPlayerInterior(playerid, 0);
line 8060:            new string[256], pname[MAX_PLAYER_NAME];
line 8061:           GetPlayerName(playerid, pname, sizeof(pname));
line 8062:            format(string, sizeof(string), "%s has gone to 1vs1 DM. (/1vs1)", pname);
line 8063:            SendClientMessageToAll(COLOR_ORANGE, string);
line 8064:			1vs1 = ++;
line 8065:            SetPlayerInterior(playerid, 0);
line 8066:            }
line 8067:            return 1;
}
THIS CODE WON'T work i even knew when i was typing it but i think i might help other understand what i want
now can anyone help me make 1vs1. it has maximum of 2 players limit at one time if an player types /1vs1 he will be teleported there and now 1 space is left so when an other person types he will be teleported there now there are 2 players in there so it's full so when another player type /1vs1 it should return
Код:
SCM(playerid,COLOR_RED,"1 VS 1 Arena is Full");
with this error message
now i am pretty sure u will get what i mean and yeah the codes i gave i tried to compile it and got
Код:
(8044) : error 020: invalid symbol name ""
(8044) : error 010: invalid function or declaration
(8048) : error 029: invalid expression, assumed zero
(8048) : error 017: undefined symbol "vs1"
(8048) : warning 215: expression has no effect
(8048) : error 001: expected token: ";", but found "]"
(8048) : fatal error 107: too many error messages on one line
Reply


Messages In This Thread
Help in creating 1VS1 - by AroseKhanNiazi - 08.03.2014, 21:54
Re: Help in creating 1VS1 - by arakuta - 08.03.2014, 22:19
Re: Help in creating 1VS1 - by AroseKhanNiazi - 09.03.2014, 14:01
Re: Help in creating 1VS1 - by arakuta - 09.03.2014, 14:02
Re: Help in creating 1VS1 - by AroseKhanNiazi - 09.03.2014, 14:04
Re: Help in creating 1VS1 - by AroseKhanNiazi - 10.03.2014, 09:51
Re: Help in creating 1VS1 - by jueix - 10.03.2014, 10:47
Re: Help in creating 1VS1 - by AroseKhanNiazi - 11.03.2014, 10:17
Re: Help in creating 1VS1 - by RedFusion - 11.03.2014, 10:20
Re: Help in creating 1VS1 - by AroseKhanNiazi - 11.03.2014, 10:41

Forum Jump:


Users browsing this thread: 1 Guest(s)