Scripting Gates [HELP]
#1

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.
Reply
#2

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

Your a bitch Love Ryan (:
Reply
#4

Luv u to ryan nohomo get on skype!
And thanks for replying so fast im trying it now
Reply
#5

Ok. Tell me if it works
Reply
#6

I did what u said and i sill get,

Quote:

fatal error 103: insufficient memory

Reply
#7

can you tell the gate coords Closed and Opened?
Reply
#8

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);
Reply
#9

Try deleting that gate.. all of it.. and try to compile it..
Reply
#10

ok
ill do that now
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)