21.02.2012, 16:05
(
Последний раз редактировалось Danyal; 21.02.2012 в 16:43.
)
PROBLEM SOLVED SEE LAST PAGE ABOUT THAT FIX
WARNINGS
pawn Код:
#include <a_samp>
#include <F_Streamer>
#define FILTERSCRIPT
#define MAX_GATES 2
new basedoor[MAX_GATES],
bool:Open[MAX_GATES char];
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public OnFilterScriptInit()
{
basedoor[0] = F_CreateObject(980,1242.091,-2573.087,5.638,0.0,0.0,-90.000);
basedoor[1] = F_CreateObject(980,889.423,-2573.138,5.688,0.0,0.0,-90.000);
return 1;
}
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if (PRESSED(KEY_CROUCH))
{
switch(Open{0})
{
case true:
{
F_MoveObject(basedoor[0], 1242.091,-2573.087,-5.25, 1.5);
Open{0} == false; //----- [Line 355] -----
}
case false:
{
F_MoveObject(basedoor[0], 1242.091,-2573.087,5.638, 1.5);
Open{0} == true; //----- [Line 360] -----
}
}
switch(Open{1})
{
case true:
{
F_MoveObject(basedoor[1], 889.423,-2573.138,5.688, 1.5);
Open{1} == false; //----- [Line 369] -----
}
case false:
{
F_MoveObject(basedoor[1], 889.423,-2573.138,5.688, 1.5);
Open{1} == true; //----- [Line 374] -----
}
}
}
return 1;
}
PHP код:
(374) : warning 215: expression has no effect
(369) : warning 215: expression has no effect
(360) : warning 215: expression has no effect
(355) : warning 215: expression has no effect