Jump to content
  • 0

pomoc HELP - Move Objectt


Cz_Ritch

Dotaz

Ahoj, mam chybičky...

#include 
#pragma tabsize 0
//////////////////////////Define///////////////////////////////

public OnFilterScriptInit( )
{
print( "\n[FS] *************************" );
print( "[FS] * My SA:MP Filterscript *" );
print( "[FS] * Loaded ...            *" );
print( "[FS] *************************\n" );
}

public OnFilterScriptExit( )
{
print( "\n[FS] *************************" );
print( "[FS] * My SA:MP Filterscript *" );
print( "[FS] * Unloaded ...          *" );
print( "[FS] *************************\n" );
}

public OnPlayerCommandText( playerid, cmdtext[] )

{

CreateObject(3279,14.941,2020.965,16.723,0.0,0.0,0.0);
CreateObject(987,8.974,2024.300,16.647,0.0,0.0,270.000);
CreateObject(987,8.832,2013.486,16.641,0.0,0.0,270.000);
CreateObject(987,8.839,2002.147,16.641,0.0,0.0,270.000);
CreateObject(987,8.645,1990.773,16.641,0.0,0.0,270.000);
CreateObject(987,8.611,1981.505,16.641,0.0,0.0,270.000);
CreateObject(987,8.523,1969.779,16.641,0.0,0.0,0.0);
CreateObject(987,19.365,1969.664,16.641,0.0,0.0,0.0);
CreateObject(987,30.912,1969.563,16.641,0.0,0.0,0.0);
CreateObject(987,42.069,1969.494,16.641,0.0,0.0,0.0);
CreateObject(987,54.133,1969.330,16.641,0.0,0.0,90.000);
CreateObject(987,54.209,1981.070,16.641,0.0,0.0,90.000);
CreateObject(987,54.275,1991.894,16.641,0.0,0.0,90.000);
CreateObject(987,54.295,2002.157,16.641,0.0,0.0,90.000);
CreateObject(987,54.481,2013.882,16.641,0.0,0.0,90.000);
CreateObject(987,54.559,2024.007,16.641,0.0,0.0,180.000);
CreateObject(987,42.925,2023.722,16.641,0.0,0.0,180.000);
CreateObject(987,31.418,2023.993,16.641,0.0,0.0,180.000);
CreateObject(987,19.810,2024.209,16.641,0.0,-1.719,180.000);
CreateObject(8947,46.214,1982.966,19.693,0.0,0.0,180.000);
CreateObject(972,42.967,1965.981,22.744,0.0,0.0,90.000);
CreateObject(972,23.595,1966.800,22.144,0.0,0.0,90.000);
CreateObject(972,12.033,1984.145,22.144,0.0,0.0,180.000);
CreateObject(972,11.791,2003.012,21.638,0.0,0.0,180.000);
CreateObject(972,11.703,2016.056,21.388,0.0,0.0,180.000);
CreateObject(972,14.186,2027.478,20.788,0.0,0.0,270.000);
CreateObject(972,38.792,2027.242,20.138,0.0,0.0,270.000);
CreateObject(972,51.228,2010.058,21.394,0.0,0.0,0.0);
CreateObject(972,50.211,1991.140,21.594,0.0,0.0,0.0);
CreateObject(18367,10.404,1974.124,10.423,-16.329,-0.859,90.000);
CreateObject(643,45.716,1986.066,23.217,0.0,0.0,0.0);
CreateObject(18259,31.267,1984.470,17.764,0.0,0.0,270.000);
brana = CreateObject( 18449,43.161,2037.784,15.427,0.0,0.0,90.000);
CreateObject(18449,43.746,2039.024,44.989,0.0,0.0,90.000);

new brana;


if(strcmp(cmd, "/otevrit", true) == 0) {
MoveObject(brana, 18449,43.746,2039.024,44.989,0.0,0.0,90.000, 3);
SendClientMessage(playerid, 0xD2691EAA,"** Brana je otevrena.");
return 1;
}

if(strcmp(cmd, "/zavrit", true) == 0) {
MoveObject(brana, 18449,43.161,2037.784,15.427,0.0,0.0,90.000, 3);
SendClientMessage(playerid, 0xD2691EAA,"** Brana je zavrena.");
return 1;
}



return 0;
}

 

 

C:\Documents and Settings\Martínek\Dokumenty\Downloads\Untitled54345.pwn(57) : error 017: undefined symbol "brana"

C:\Documents and Settings\Martínek\Dokumenty\Downloads\Untitled54345.pwn(63) : error 017: undefined symbol "cmd"

C:\Documents and Settings\Martínek\Dokumenty\Downloads\Untitled54345.pwn(64) : warning 202: number of arguments does not match definition

C:\Documents and Settings\Martínek\Dokumenty\Downloads\Untitled54345.pwn(64) : warning 202: number of arguments does not match definition

C:\Documents and Settings\Martínek\Dokumenty\Downloads\Untitled54345.pwn(64) : warning 202: number of arguments does not match definition

C:\Documents and Settings\Martínek\Dokumenty\Downloads\Untitled54345.pwn(64) : warning 202: number of arguments does not match definition

C:\Documents and Settings\Martínek\Dokumenty\Downloads\Untitled54345.pwn(69) : error 017: undefined symbol "cmd"

C:\Documents and Settings\Martínek\Dokumenty\Downloads\Untitled54345.pwn(70) : warning 202: number of arguments does not match definition

C:\Documents and Settings\Martínek\Dokumenty\Downloads\Untitled54345.pwn(70) : warning 202: number of arguments does not match definition

C:\Documents and Settings\Martínek\Dokumenty\Downloads\Untitled54345.pwn(70) : warning 202: number of arguments does not match definition

C:\Documents and Settings\Martínek\Dokumenty\Downloads\Untitled54345.pwn(70) : warning 202: number of arguments does not match definition

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

3 Errors.

Link to comment
Share on other sites

12 odpovědí na tuto otázku

Recommended Posts

  • 0

ste slepý ?

daj do OnGameModeInt

CreateObject(3279,14.941,2020.965,16.723,0.0,0.0,0.0);

CreateObject(987,8.974,2024.300,16.647,0.0,0.0,270.000);

CreateObject(987,8.832,2013.486,16.641,0.0,0.0,270.000);

CreateObject(987,8.839,2002.147,16.641,0.0,0.0,270.000);

CreateObject(987,8.645,1990.773,16.641,0.0,0.0,270.000);

CreateObject(987,8.611,1981.505,16.641,0.0,0.0,270.000);

CreateObject(987,8.523,1969.779,16.641,0.0,0.0,0.0);

CreateObject(987,19.365,1969.664,16.641,0.0,0.0,0.0);

CreateObject(987,30.912,1969.563,16.641,0.0,0.0,0.0);

CreateObject(987,42.069,1969.494,16.641,0.0,0.0,0.0);

CreateObject(987,54.133,1969.330,16.641,0.0,0.0,90.000);

CreateObject(987,54.209,1981.070,16.641,0.0,0.0,90.000);

CreateObject(987,54.275,1991.894,16.641,0.0,0.0,90.000);

CreateObject(987,54.295,2002.157,16.641,0.0,0.0,90.000);

CreateObject(987,54.481,2013.882,16.641,0.0,0.0,90.000);

CreateObject(987,54.559,2024.007,16.641,0.0,0.0,180.000);

CreateObject(987,42.925,2023.722,16.641,0.0,0.0,180.000);

CreateObject(987,31.418,2023.993,16.641,0.0,0.0,180.000);

CreateObject(987,19.810,2024.209,16.641,0.0,-1.719,180.000);

CreateObject(8947,46.214,1982.966,19.693,0.0,0.0,180.000);

CreateObject(972,42.967,1965.981,22.744,0.0,0.0,90.000);

CreateObject(972,23.595,1966.800,22.144,0.0,0.0,90.000);

CreateObject(972,12.033,1984.145,22.144,0.0,0.0,180.000);

CreateObject(972,11.791,2003.012,21.638,0.0,0.0,180.000);

CreateObject(972,11.703,2016.056,21.388,0.0,0.0,180.000);

CreateObject(972,14.186,2027.478,20.788,0.0,0.0,270.000);

CreateObject(972,38.792,2027.242,20.138,0.0,0.0,270.000);

CreateObject(972,51.228,2010.058,21.394,0.0,0.0,0.0);

CreateObject(972,50.211,1991.140,21.594,0.0,0.0,0.0);

CreateObject(18367,10.404,1974.124,10.423,-16.329,-0.859,90.000);

CreateObject(643,45.716,1986.066,23.217,0.0,0.0,0.0);

CreateObject(18259,31.267,1984.470,17.764,0.0,0.0,270.000);

brana = CreateObject( 18449,43.161,2037.784,15.427,0.0,0.0,90.000);

CreateObject(18449,43.746,2039.024,44.989,0.0,0.0,90.000);

new brana;// daj hore pod includy

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...