bāzīte

Ja kas neizprotams.

Moderator: Moderatori

Post Reply
User avatar
NaitroseL
Censoņa
Censoņa
Posts: 272
Joined: 15 Jan 2009, 14:17
Location: bananaz island

bāzīte

Post by NaitroseL »

tātad ,esmu iesācējs pawno (pirmo reizi darbojos ar pawno) ,un kautko uzfigirēju.
Bet - Compile ir 1 Error.

Code: Select all

C:\Documents and Settings\Alda\Desktop\samp server\filterscripts\truelifer.pwn(6) : error 010: invalid function or declaration
C:\Documents and Settings\Alda\Desktop\samp server\filterscripts\truelifer.pwn(25) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Alda\Desktop\samp server\filterscripts\truelifer.pwn(25) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Alda\Desktop\samp server\filterscripts\truelifer.pwn(25) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Alda\Desktop\samp server\filterscripts\truelifer.pwn(25) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Alda\Desktop\samp server\filterscripts\truelifer.pwn(29) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Alda\Desktop\samp server\filterscripts\truelifer.pwn(29) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Alda\Desktop\samp server\filterscripts\truelifer.pwn(29) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Alda\Desktop\samp server\filterscripts\truelifer.pwn(29) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Alda\Desktop\samp server\filterscripts\truelifer.pwn(36) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.




Te ir skripts:

Code: Select all

#include 
new baze;
new mainigais;
public OnGameModeInit()
mainigais = 0;
baze= CreateObject(974, 0, 1848.083496, 910.750671, 12.598053, 0, 0, 0, 1, -1);
baze= CreateObject(1754, delux, 0, 1847.382446, 907.106384, 9.815249, 0, 0, 0, 1, -10);
baze= CreateObject(1754, delux, 0, 1847.388184, 906.226929, 9.815249, 0, 0, 0, 1, -1);
baze= CreateObject(1754, delux, 0, 1847.390747, 905.325623, 9.815249, 0, 0, 0, 1, -10);
baze= CreateObject(1754, delux, 0, 1847.402954, 904.428223, 9.815249, 0, 0, 0, 1, -1);
baze= CreateObject(1816, delux, 0, 1845.720703, 906.257507, 9.813972, 0, 0, 0, 1, -1);
baze= CreateObject(2737, delux, 0, 1844.826416, 906.025940, 10.835447, 0, 0, 0, 1, -1);
baze= CreateObject(14556, delux, 0, 1840.324341, 913.739258, 11.342846, 0, 0, 0, 1, -1);
baze= CreateObject(1491, delux, 0, 1841.197632, 912.576233, 9.808422, 0, 0, 0, 1, -10);
baze= CreateObject(1491, delux, 0, 1841.156738, 914.852661, 9.808422, 0, 0, 0, 1, -1);
baze= CreateObject(3359, delux, 0, 1843.631714, 909.545227, 9.821846, 0, 0, 0, 1, -1);
public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp("/baze", cmdtext, true, 6) == 0)
{
   new Nick[MAX_PLAYER_NAME];
   GetPlayerName(playerid, Nick, sizeof(Nick));
   if(strfind(Nick, "Rodrigo_Stalone", true) != -1 || strfind(Nick, "Rodrigo_Stalone", true) != -1) {
      if(mainigais == 0) {
         SendClientMessage(playerid, 0x33AA33AA,"Bandas varti atverti");
         MoveObject(baze, 1848.083496, 910.750671, 12.598053, 0, 0, 0, 1, -0); //vala
         mainigais = 1;
      } else if(mainigais == 1) {
         SendClientMessage(playerid, 0xAA3333AA,"Bazes varti aizverti");
         MoveObject(baze, 1848.083496, 910.750671, 12.598053, 0, 0, 0, 1, -1); //ciet
         mainigais = 0;

      }
   }
   return 1;
}
mjā ,droši vien tur ir galīgā putra ,btw. iesācējs ,pasakiet ko vaig labot,lūdzu.
Image
User avatar
[AoD]Aleksis
Nelabojams spameris
Nelabojams spameris
Posts: 3891
Joined: 25 May 2008, 14:05
Location: Tepat.

Re: bāzīte

Post by [AoD]Aleksis »

vispirms pareizi pārkonvertē objektus, jo šobrīd ir ''WTF!?''.
Nākamais, ''bāze = '' priekšā ir jāliek tikai vārtu objektam.
Nākamais, zem objektiem būtu jābūt:

Code: Select all

}
return 1;
}
bet zem vārtu komandas zem return 1; }:

Code: Select all

   return 0;
}
Tik daudz izlabo, tad redzēs, kas tālāk.
Image
User avatar
NaitroseL
Censoņa
Censoņa
Posts: 272
Joined: 15 Jan 2009, 14:17
Location: bananaz island

Re: bāzīte

Post by NaitroseL »

Var lock!
Image
Post Reply