deathmatch question
#8

This code gives a error :

Код:
		if(strcmp(cmdtext, "/back", true) == 0)
    {
    	if(BlockCmd[playerid] ==1)
		 }
    	SetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
    	SetPlayerFacingAngle(playerid, PosA[playerid]);
    	SetCameraBehindPlayer(playerid);
    	SetPlayerInterior(playerid, PosI[playerid]);
    	BlockCmd[playerid]=0;
  			ResetPlayerWeapons(playerid);
  			}else SendClientMessage(playerid,0xFF0000AA, "[ERROR] You cant use /back because you're not in a dm area");
		return 1;
 		}
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\tele.pwn(93) : error 029: invalid expression, assumed zero
( Its the } under blockcmd , if i change it to { i get more errors then before)

p.s.: If i remove this } then the code is completly error free, but it have the same function as before.

Example:
1. from the deathmatch i typed : /back --> this function works
2. back in venturas: i cant typ another commands anymore then will this command show up :
[ERROR] You cant use /back because you're not in a dm area.
3. if i walk like 3 steps in las venturas and typ /back then i will putted back to the position where i last standed


(is playerinarea have no function for some reason?)
Reply


Messages In This Thread
deathmatch question - by smokey104 - 28.05.2009, 14:58
Re: deathmatch question - by farse - 28.05.2009, 15:07
Re: deathmatch question - by smokey104 - 28.05.2009, 15:12
Re: deathmatch question - by smokey104 - 28.05.2009, 15:55
Re: deathmatch question - by farse - 28.05.2009, 16:05
Re: deathmatch question - by smokey104 - 28.05.2009, 16:33
Re: deathmatch question - by farse - 28.05.2009, 16:50
Re: deathmatch question - by smokey104 - 28.05.2009, 17:10
Re: deathmatch question - by smokey104 - 28.05.2009, 18:01
Re: deathmatch question - by Jatoofer - 28.05.2009, 18:24

Forum Jump:


Users browsing this thread: 2 Guest(s)