-
Sziasztok a script:
#include <a_samp>
new lift;
public OnGameModeInit()
{
lift = CreateObject(1698, 2612.6999511719, -1920.9000244141, 3, 0, 0, 0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, \"/lift-fel\", true) == 0)
{
MoveObject(lift, 2612.6999511719, -1920.9000244141, 16.799999237061, 2.0, 270, 0, 0);
return 1;
}
if(strcmp(cmdtext, \"/lift-le\", true) == 0)
{
MoveObject(lift, 2612.6999511719, -1920.9000244141, 3, 2.0, 270, 0, 0);
return 1;
}
és az error
C:\\Documents and Settings\\Dyr Oss\\Asztal\\lift.pwn(42) : error 030: compound statement not closed at the end of file (started at line 22)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
-
Sziasztok a script:
#include <a_samp>
new lift;
public OnGameModeInit()
{
lift = CreateObject(1698, 2612.6999511719, -1920.9000244141, 3, 0, 0, 0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, \"/lift-fel\", true) == 0)
{
MoveObject(lift, 2612.6999511719, -1920.9000244141, 16.799999237061, 2.0, 270, 0, 0);
return 1;
}
if(strcmp(cmdtext, \"/lift-le\", true) == 0)
{
MoveObject(lift, 2612.6999511719, -1920.9000244141, 3, 2.0, 270, 0, 0);
return 1;
}
és az error
C:\\Documents and Settings\\Dyr Oss\\Asztal\\lift.pwn(42) : error 030: compound statement not closed at the end of file (started at line 22)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Tessék:
#include <a_samp>
new lift;
public OnGameModeInit()
{
lift = CreateObject(1698, 2612.6999511719, -1920.9000244141, 3, 0, 0, 0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, \"/lift-fel\", true) == 0)
{
MoveObject(lift, 2612.6999511719, -1920.9000244141, 16.799999237061, 2.0, 270, 0, 0);
return 1;
}
if(strcmp(cmdtext, \"/lift-le\", true) == 0)
{
MoveObject(lift, 2612.6999511719, -1920.9000244141, 3, 2.0, 270, 0, 0);
return 1;
}
return 0;
}
-
#include <a_samp>
new lift;
public OnGameModeInit()
{
lift = CreateObject(1698, 2612.6999511719, -1920.9000244141, 3, 0, 0, 0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, \"/lift-fel\", true) == 0)
{
MoveObject(lift, 2612.6999511719, -1920.9000244141, 16.799999237061, 2.0, 270, 0, 0);
return 1;
}
if(strcmp(cmdtext, \"/lift-le\", true) == 0)
{
MoveObject(lift, 2612.6999511719, -1920.9000244141, 3, 2.0, 270, 0, 0);
return 1;
}
return 0;
}
:)
[Modositva]
-
A hibád az volt, hogy nem zártad le az OnPlayerCommandText eljárást.