automatic CloseGate errors -
cozza123456 - 18.08.2009
C:\Users\Administrator\Desktop\SAMPSERVER (1)\gamemodes\CJFreeRoam212121.pwn(35

: error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\SAMPSERVER (1)\gamemodes\CJFreeRoam212121.pwn(35

: error 004: function "CloseGate" is not implemented
C:\Users\Administrator\Desktop\SAMPSERVER (1)\gamemodes\CJFreeRoam212121.pwn(359) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\SAMPSERVER (1)\gamemodes\CJFreeRoam212121.pwn(359) : error 004: function "CloseGate" is not implemented
C:\Users\Administrator\Desktop\SAMPSERVER (1)\gamemodes\CJFreeRoam212121.pwn(365) : warning 225: unreachable code
//------------------------------------------------------------------------------
if(strcmp(cmdtext,"/secret1", true) == 0) //OPENGATE
{
if(PlayerToPoint(15.0, playerid, -2468.3889, 1547.0945, 23.8359))
{
MoveObject(cozgate, -2468.371338, 1547.240723, 24.030167, 2.0);
SendClientMessage(playerid, 0x33FF33AA, "SUCCESS: Gate has been opened, automatically closing in 10 seconds");
SetTimerEx("CloseGate", 10000, false, "i", playerid);
}
return 1;
}
forward CloseGate(playerid);
public CloseGate(playerid)
{
MoveObject(cozgate, -2468.352051, 1547.224243, 21.280209, 2.0);
return 1;
}
Re: automatic CloseGate errors -
[mad]MLK - 18.08.2009
whats line 358, 359 and 365
Re: automatic CloseGate errors -
saiberfun - 18.08.2009
forward CloseGate(playerid);
needs to be at the top of the script i think^^
Re: automatic CloseGate errors -
cozza123456 - 18.08.2009
Quote:
Originally Posted by [mad
MLK (sampx-hosting.co.cc) ]
whats line 358, 359 and 365 
|
new error problem !
C:\Users\Administrator\Desktop\SAMPSERVER (1)\gamemodes\CJFreeRoam212121.pwn(35

: error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\SAMPSERVER (1)\gamemodes\CJFreeRoam212121.pwn(35

: error 004: function "CloseGate" is not implemented
C:\Users\Administrator\Desktop\SAMPSERVER (1)\gamemodes\CJFreeRoam212121.pwn(364) : warning 225: unreachable code
public CloseGate(playerid) [358]
if(!strcmp(cmdtext,"/help",true) || !strcmp(cmdtext, "/ajutor",true)) [364]