28.05.2009, 17:10
This code gives a error :
( 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?)
Код:
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
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?)