Jump to content
  • 0

pomoc Errory Pri Moveobject


majkyxxx

Dotaz

Čaute chcel by som POMOC. Urobil som si bránu cez (MoveObject) ale hádže mi to furt ERORRY.

 

Tu máte .PWN CODE:

#include <a_samp>
new tbrana;
public OnFilterScriptInit()
{
tbrana = CreateObject(980, -24.652000427246, 1530.3830566406, 14.378999710083, 0, 359.75, 88.5);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/topen", cmdtext, true, 10) == 0)
 MoveObject(tbrana, -24.652000427246, 1530.3830566406, 19.628999710083, 3);
 SendClientMessage(playerid, 0xFFFF00FF,"**[TuningZraz]** TBrána je otvorená!.");
 return 1;
}
//============================================================================//
if (strcmp("/tclose", cmdtext, true, 10) == 0)
 MoveObject(tbrana, -24.652000427246, 1530.3830566406, 14.378999710083, 3);
 SendClientMessage(playerid, 0xFFFF00FF,"**[TuningZraz]** TBrána je zatvorená!.");
 return 1;
}
return 1;
}

 

ERRORY:

C:\Users\Toshiba\Desktop\tbrana.pwn(15) : warning 217: loose indentation
C:\Users\Toshiba\Desktop\tbrana.pwn(19) : error 010: invalid function or declaration
C:\Users\Toshiba\Desktop\tbrana.pwn(22) : error 010: invalid function or declaration
C:\Users\Toshiba\Desktop\tbrana.pwn(24) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 Copyright (c) 1997-2006, ITB CompuPhase

3 Errors.

 

A to OnPlayerCommandText by som chcel ešte opraviť aby to mohli iba adminy napísať ten Príkaz. Len neviem aký CMD je pre adminou takže pls keby ste mi s tím pomohli tak by vam patrilo veľké vďaka.

Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

  • 0
#include <a_samp>

new tbrana;

public OnFilterScriptInit()
{
tbrana = CreateObject(980, -24.652000427246, 1530.3830566406, 14.378999710083, 0, 359.75, 88.5);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/topen", cmdtext, true, 10) == 0)
{
MoveObject(tbrana, -24.652000427246, 1530.3830566406, 19.628999710083, 3);
SendClientMessage(playerid, 0xFFFF00FF,"**[TuningZraz]** TBrána je otvorená!.");
}
if (strcmp("/tclose", cmdtext, true, 10) == 0)
{
MoveObject(tbrana, -24.652000427246, 1530.3830566406, 14.378999710083, 3);
SendClientMessage(playerid, 0xFFFF00FF,"**[TuningZraz]** TBrána je zatvorená!.");
}
return 1;
}

Link to comment
Share on other sites

  • 0
Téma bylo uzavřeno, problém byl vyřešen.

Toto téma bylo uzavřeno, jelikož zakladatel tématu již problém vyřešil. Pokud máte další dotazy ohledně tohoto tématu, založte si téma nové.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...