19.12.2010, 20:57
I get this error
C:\Users\Jack\Documents\Ascendence Documents\GTA SAMP SERVER\sdoor.pwn(10) : error 029: invalid expression, assumed zero
C:\Users\Jack\Documents\Ascendence Documents\GTA SAMP SERVER\sdoor.pwn(10) : error 035: argument type mismatch (argument
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
C:\Users\Jack\Documents\Ascendence Documents\GTA SAMP SERVER\sdoor.pwn(10) : error 029: invalid expression, assumed zero
C:\Users\Jack\Documents\Ascendence Documents\GTA SAMP SERVER\sdoor.pwn(10) : error 035: argument type mismatch (argument

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Код:
#include <a_samp>
new sdoor;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
sdoor = CreateObject(896,2974.106445,2116.620117,8.532794,0.000000,0.000000,0.000000,);//closed
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/osdoor", true) == 0)
{
MoveObject(sdoor, 2974.106445,2124.700683,8.532794, 1.500000);
return 1;
}
if(strcmp(cmdtext,"/osdoor", true) == 0)
{
MoveObject(sdoor, 2974.106445,2116.620117,8.532794, 1.500000);
return 1;
}
return 0;
}

