automatic CloseGate errors
#1

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;
}
Reply
#2

whats line 358, 359 and 365
Reply
#3

forward CloseGate(playerid);
needs to be at the top of the script i think^^
Reply
#4

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]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)