problema ar bazes gatem

Ja kas neizprotams.

Moderator: Moderatori

Locked
[YeaH]DaX
Jauniņais
Jauniņais
Posts: 15
Joined: 21 Feb 2009, 16:26

problema ar bazes gatem

Post by [YeaH]DaX »

Code: Select all

#include 
new mainigais;
new baaze;


public OnFilterScriptInit()
{
 print("\n--------------------------------------");
 print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    baaze = CreateObject(972, 1807.185303, -1891.924194, 8.928185, 0.0000, 0.0000, 0.0000);
}
    public OnPlayerCommandText(playerid, cmdtext[])
{
 (strcmp("/OpenMansion", cmdtext, true, 6) == 0)
{
	new Nick[MAX_PLAYER_NAME];
 	GetPlayerName(playerid, Nick, sizeof(Nick));
	if(strfind(Nick, "[HOT]", true) != -1 || strfind(Nick, "[HOT]", true) != -1);
{
		if(mainigais == 0)
         SendClientMessage(playerid, 0x33AA33AA,"Baze ir atverta");
         MoveObject(baaze, 1807.185303, -1891.924194, 16.928185, 3); //vala
         mainigais = 1;
      } else if(mainigais == 1) {
         SendClientMessage(playerid, 0xAA3333AA,"Baze ir aizverta");
         MoveObject(baaze, 1807.185303, -1891.924194, 8.928185, 3); //ciet
         mainigais = 0;

      }
   }
   return 1;
}
kapee 4 erori


vis kas ir arī erori

C:\Documents and Settings\Dators\Desktop\nekas.pwn(10) : warning 217: loose indentation
C:\Documents and Settings\Dators\Desktop\nekas.pwn(15 -- 16) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Dators\Desktop\nekas.pwn(16) : warning 217: loose indentation
C:\Documents and Settings\Dators\Desktop\nekas.pwn(18) : warning 217: loose indentation
C:\Documents and Settings\Dators\Desktop\nekas.pwn(19) : warning 217: loose indentation
C:\Documents and Settings\Dators\Desktop\nekas.pwn(19) : error 036: empty statement
C:\Documents and Settings\Dators\Desktop\nekas.pwn(20) : warning 217: loose indentation
C:\Documents and Settings\Dators\Desktop\nekas.pwn(23) : warning 217: loose indentation
C:\Documents and Settings\Dators\Desktop\nekas.pwn(25) : warning 217: loose indentation
C:\Documents and Settings\Dators\Desktop\nekas.pwn(25) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Dators\Desktop\nekas.pwn(25) : warning 215: expression has no effect
C:\Documents and Settings\Dators\Desktop\nekas.pwn(25) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\Dators\Desktop\nekas.pwn(32) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Last edited by [YeaH]DaX on 31 Jul 2009, 16:22, edited 1 time in total.
Image
User avatar
[fate.lv]RXTS
Nelabojams spameris
Nelabojams spameris
Posts: 1895
Joined: 01 Mar 2008, 11:42
Location: Ādusā!

Re: problema ar bazes gatem

Post by [fate.lv]RXTS »

Varbūt parādīsi kādi errori ? :.
  • Image
[YeaH]DaX
Jauniņais
Jauniņais
Posts: 15
Joined: 21 Feb 2009, 16:26

Re: problema ar bazes gatem

Post by [YeaH]DaX »

C:\Documents and Settings\Dators\Desktop\nekas.pwn(10) : warning 217: loose indentation
C:\Documents and Settings\Dators\Desktop\nekas.pwn(15 -- 16) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Dators\Desktop\nekas.pwn(16) : warning 217: loose indentation
C:\Documents and Settings\Dators\Desktop\nekas.pwn(18) : warning 217: loose indentation
C:\Documents and Settings\Dators\Desktop\nekas.pwn(19) : warning 217: loose indentation
C:\Documents and Settings\Dators\Desktop\nekas.pwn(19) : error 036: empty statement
C:\Documents and Settings\Dators\Desktop\nekas.pwn(20) : warning 217: loose indentation
C:\Documents and Settings\Dators\Desktop\nekas.pwn(23) : warning 217: loose indentation
C:\Documents and Settings\Dators\Desktop\nekas.pwn(25) : warning 217: loose indentation
C:\Documents and Settings\Dators\Desktop\nekas.pwn(25) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Dators\Desktop\nekas.pwn(25) : warning 215: expression has no effect
C:\Documents and Settings\Dators\Desktop\nekas.pwn(25) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\Dators\Desktop\nekas.pwn(32) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Image
nismo_AmP
Servera Foruma admin
Servera Foruma admin
Posts: 907
Joined: 26 Jan 2008, 19:48
Location: Rīga < Ventspils

Re: problema ar bazes gatem

Post by nismo_AmP »

Code: Select all

#include 
new mainigais;
new baaze;

public OnFilterScriptInit() {
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	baaze = CreateObject(972, 1807.185303, -1891.924194, 8.928185, 0.0000, 0.0000, 0.0000);
	return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) {
	if(strcmp("/OpenMansion", cmdtext, true, 12) == 0) {
		new Nick[MAX_PLAYER_NAME];
		GetPlayerName(playerid, Nick, sizeof(Nick));
		if(strfind(Nick, "[HOT]", true) != -1) {
			if(mainigais == 0) {
				SendClientMessage(playerid, 0x33AA33AA,"Baze ir atverta");
				MoveObject(baaze, 1807.185303, -1891.924194, 16.928185, 3); //vala
				mainigais = 1;
			} else if(mainigais == 1) {
				SendClientMessage(playerid, 0xAA3333AA,"Baze ir aizverta");
				MoveObject(baaze, 1807.185303, -1891.924194, 8.928185, 3); //ciet
				mainigais = 0;
			}
		}
		return 1;
	}
	return 0;
}
[YeaH]DaX
Jauniņais
Jauniņais
Posts: 15
Joined: 21 Feb 2009, 16:26

Re: problema ar bazes gatem

Post by [YeaH]DaX »

tnx
Image
Locked