gate closing problem
#1

if (strcmp("/housegate", cmdtext, true, 10) == 0)
{
if(Eg: PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] ==6)
{
if(PlayerToPoint(40, playerid, 999.17, -644.53, 119.6)
{
MoveObject(Jose, 990.08, -646.36, 120.46, 10);
SetTimer("GateClose", 12000, 0);
SendClientMessage(playerid, 0xFFFFFF, "You've opened your house gate");
}
}else{
SendClientMessage(playerid, 0xFFFFF, "You dont now the pincode");
}
return 1;
}


any ideas why this gate wont close even thu i add settimer
Reply
#2

Have you created a public GateClose
For your timer?
Reply
#3

im a dumass lol thanks forgot about that lol
Reply
#4

C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\larp.pwn(3964) : warning 235: public function lacks forward declaration (symbol "GateClose8")
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\larp.pwn(3966) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\larp.pwn(3966) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\larp.pwn(3966) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\larp.pwn(17750) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\larp.pwn(42721) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Program Files\Rockstar Games\GTA San Andreas\my server\gamemodes\larp.pwn(44702) : warning 203: symbol is never used: "gMedicSpawns"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 8904 bytes
Code size: 1621016 bytes
Data size: 10324816 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5266 cells (21064 bytes)
Total requirements:11971120 bytes

7 Warnings.


ive doe the public but now i get warnings and the gate still doesnt close

new Jose;


public GateClose8(playerid)
{
MoveObject(Jose,969, 999.17, -644.53, 119.68, 0.00, 0.00, 22.5);
PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
return 1;



Jose = CreateObject(969, 999.17, -644.53, 119.68, 0.00, 0.00, 22.5);




if (strcmp("/housegate", cmdtext, true, 10) == 0)
{
if(Eg: PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] ==6)
{
if(PlayerToPoint(40, playerid, 999.17, -644.53, 119.6)
{
MoveObject(Jose, 990.08, -646.36, 119.68, 10);
SetTimer("GateClose", 12000, 0);
SendClientMessage(playerid, 0xFFFFFF, "You've opened your house gate");
}
}else{
SendClientMessage(playerid, 0xFFFFF, "You dont now the pincode");
}
return 1;
}



What am i missing ?










Reply
#5

Missing an 8 in the function or adding an 8 in the timer. Eitherway, the names are not the same.

And probably a closing bracket. (I see one at gateclose
Reply
#6

thanks that sorted it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)