Scripting Gates [HELP] -
smashed390 - 23.12.2011
Ok hi, i need help with scritping a gate command for the gate to open and close but when i compile it says insufficent memory.
Here is the Command that i scripted.
Quote:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/dpdopen", true) == 0) (;
MoveObject(Gate, 648.79998779,-624.79998779,17.10000038, 1);
SendClientMessage(playerid, Blue, "DPD Gate is opening.");
return 1;
}
if(strcmp(cmd, "/dpdclose", true) == 0) (;
MoveObject(Gate, 648.90002441,-627.40002441,17.20000076. 1);
SendClientMessage(playerid, Blue, "DPD Gate is closing.");
return 1;
|
And this is what it says when i compile.
Quote:
C:\Documents and Settings\Devin\Desktop\HG RolePlay Script New\pawno\dpdGate.pwn( 97 -- 98 ) : fatal error 103: insufficient memory
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
|
Please help if you know how to fix this.
Re: Scripting Gates [HELP] -
adios1 - 23.12.2011
pawn Код:
new Gate; // put this somewhere at the top of your script
public OnFilterScriptInit()
{
Gate = CreateObject(); // Put the coords of the gate... the closed one...
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/dpdopen", true) == 0) (;
MoveObject(Gate, 648.79998779,-624.79998779,17.10000038, 1);
SendClientMessage(playerid, Blue, "DPD Gate is opening.");
return 1;
}
if(strcmp(cmd, "/dpdclose", true) == 0) (;
MoveObject(Gate, 648.90002441,-627.40002441,17.20000076. 1);
SendClientMessage(playerid, Blue, "DPD Gate is closing.");
return 1;
}
Re: Scripting Gates [HELP] -
jason1212 - 23.12.2011
Your a bitch Love Ryan (:
Re: Scripting Gates [HELP] -
smashed390 - 23.12.2011
Luv u to ryan nohomo get on skype!
And thanks for replying so fast im trying it now
Re: Scripting Gates [HELP] -
adios1 - 23.12.2011
Ok. Tell me if it works
Re: Scripting Gates [HELP] -
smashed390 - 23.12.2011
I did what u said and i sill get,
Quote:
fatal error 103: insufficient memory
|
Re: Scripting Gates [HELP] -
adios1 - 23.12.2011
can you tell the gate coords Closed and Opened?
Re: Scripting Gates [HELP] -
smashed390 - 23.12.2011
Ok here are the coords
GateClosed
CreateObject(975,648.90002441,-627.40002441,17.20000076,0.00000000,0.00000000,179 .99450684);
GateOpen
CreateObject(975,648.79998779,-624.79998779,17.10000038,0.00000000,0.00000000,180 .00000000);
Re: Scripting Gates [HELP] -
adios1 - 23.12.2011
Try deleting that gate.. all of it.. and try to compile it..
Re: Scripting Gates [HELP] -
smashed390 - 23.12.2011
ok
ill do that now