Szerző Téma: kapu problem  (Megtekintve 569 alkalommal)

kapu problem
« Dátum: 2011. november 03. - 17:41:05 »
0 Show voters
[pawn]#include <a_samp>
#define COLOR_GREEN 0x9EC73DAA
#define COLOR_YELLOW 0xFFFF00AA
new kapu;
new ajto;
new telepkapu;
public OnFilterScriptInit()
{
//kapu:
 kapu = CreateObject(980,-2315.55004900,-2789.36328100,46.08017300,0.00000000,0.00000000,-56.25001695); //zárva
 ajto = CreateObject(980,395.01840210,2550.44433594,18.27297974,0.00000000,0.00000000,3.99902344); //object(electricgate) (1)
return 1;
 }
public OnPlayerCommandText(playerid, cmdtext[])
 {
if(strcmp(cmdtext, \"/tedi-zar\", true) == 0)
 {
 MoveObject(kapu,-2315.55004900,-2789.36328100,46.08017300, 2.0);
 return 1;
 }
if(strcmp(cmdtext, \"/tedi-nyit\", true) == 0)
 {
 MoveObject(kapu,-2317.96826200,-2799.81127900,40.11505100, 2.0);
 return 1;
 }
 return 0;
 }
 {
 if (strcmp(cmdtext, \"/titkos\", true) == 0)
 {
   MoveObject(ajto, 405.26361084,2551.02441406,18.27297974, 2.5);
   return 1;
 }
 if (strcmp (cmdtext, \"/titkoszar\", true) ==0)
 {
   MoveObject(ajto, 395.01840210,2550.44433594,18.27297974, 2.5);
   return 1;
  }
  return 0;
  }[/pawn]
errort ad ki
 
C:\\Users\\user\\Desktop\\kapuk.pwn(24) : warning 217: loose indentation
C:\\Users\\user\\Desktop\\kapuk.pwn(39) : warning 217: loose indentation
C:\\Users\\user\\Desktop\\kapuk.pwn(41) : error 055: start of function body without function header
C:\\Users\\user\\Desktop\\kapuk.pwn(42) : error 010: invalid function or declaration
C:\\Users\\user\\Desktop\\kapuk.pwn(45) : error 010: invalid function or declaration
C:\\Users\\user\\Desktop\\kapuk.pwn(47) : error 010: invalid function or declaration
C:\\Users\\user\\Desktop\\kapuk.pwn(50) : error 010: invalid function or declaration
C:\\Users\\user\\Desktop\\kapuk.pwn(52) : error 010: invalid function or declaration
C:\\Users\\user\\Desktop\\kapuk.pwn(21) : warning 204: symbol is assigned a value that is never used: \"ajto\"
C:\\Users\\user\\Desktop\\kapuk.pwn(21 -- 54) : warning 203: symbol is never used: \"telepkapu\"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
6 Errors.

 
pls help

kapu problem
« Válasz #1 Dátum: 2011. november 03. - 18:08:32 »
+1 Show voters
[pawn]#include <a_samp>
#define COLOR_GREEN 0x9EC73DAA
#define COLOR_YELLOW 0xFFFF00AA
new kapu;
new ajto;
public OnFilterScriptInit()
{
//kapu:
    kapu = CreateObject(980,-2315.55004900,-2789.36328100,46.08017300,0.00000000,0.00000000,-56.25001695); //zárva
    ajto = CreateObject(980,395.01840210,2550.44433594,18.27297974,0.00000000,0.00000000,3.99902344); //object(electricgate) (1)
return 0;
 }
public OnPlayerCommandText(playerid, cmdtext[])
 {
 if(strcmp(cmdtext, \"/tedi-zar\", true) == 0)
 {
 MoveObject(kapu,-2315.55004900,-2789.36328100,46.08017300, 2.0);
 return 1;
 }
 if(strcmp(cmdtext, \"/tedi-nyit\", true) == 0)
 {
 MoveObject(kapu,-2317.96826200,-2799.81127900,40.11505100, 2.0);
 return 1;
 }
 if (strcmp(cmdtext, \"/titkos\", true) == 0)
 {
   MoveObject(ajto, 405.26361084,2551.02441406,18.27297974, 2.5);
   return 1;
 }
 if (strcmp (cmdtext, \"/titkosz*r\", true) ==0)
 {
   MoveObject(ajto, 395.01840210,2550.44433594,18.27297974, 2.5);
   return 1;
  }
  return 0;
  }[/pawn]

kapu problem
« Válasz #2 Dátum: 2011. november 03. - 18:17:34 »
0 Show voters
thx z\'rok

Dupla hozzászólás automatikusan összefûzve. ( 2011. november 03. - 18:42:44 )

nem jó valamiért nem megy
« Utoljára szerkesztve: 2011. november 03. - 18:42:44 írta N@rbirock »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal