Pomoc oko rampe

Započeo shok95, April 16, 2010, 23:33:00 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

sve sam napravio kako je receno u tut-u i on mi izbaci errore


C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(445) : error 017: undefined symbol "PlayerInfo"
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(445) : warning 215: expression has no effect
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(445) : error 001: expected token: ";", but found "]"
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(445) : error 029: invalid expression, assumed zero
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(445) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

probaj ovo da ubacis na pocetku  ;)
new PlayerInfo[MAX_PLAYERS][pInfo];

ako to nece probaj ono sa define i samo dodaj PlayerInfo


Kliknite-->registrirajte se i zaradite 
http://www.neobux.com/?r=neoreza


ovo mi javlja C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(468) : error 001: expected token: ")", but found "["
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(468) : error 029: invalid expression, assumed zero
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(468) : warning 215: expression has no effect
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(468) : error 001: expected token: ";", but found "]"
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(468) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

EDIT: OMG sad sam sjebo ceo mod u pm sad imam 9 errora nesto sam stavio i sjebo sam ga :S
Poslednja Izmena: April 16, 2010, 23:55:19 POSLE PODNE od shok95


sredio sam errore aj mi molim vas dajte sve lepo kako treba da izgleda a ne ono nmg nista da se snadjem...:S aj molim vasssssssssss


C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(477) : error 001: expected token: ")", but found "["
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(477) : error 029: invalid expression, assumed zero
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(477) : warning 215: expression has no effect
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(477) : error 001: expected token: ";", but found "]"
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(477) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

:S


turker_kc

Citat: shok95 poslato April 17, 2010, 13:50:53 POSLE PODNE
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(477) : error 001: expected token: ")", but found "["
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(477) : error 029: invalid expression, assumed zero
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(477) : warning 215: expression has no effect
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(477) : error 001: expected token: ";", but found "]"
C:\Users\Sh0k\Desktop\SERVER\SERVER\gamemodes\CANG.pwn(477) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

:S

Jel ti neznas citat ?

u redu 477 si umjesto ) stavio [ u istom redu si umjesto ; stavio ] tako da...

-> http://balkan-samp.com/forum/index.php?topic=248.0
Poslednja Izmena: April 17, 2010, 14:31:41 POSLE PODNE od 熊猫

i u redu 477 ti je nesto sto nema efekta,tj. nesto uopce nepotrebno :S...

U.S.A

Sendaj nam u P.Bu to sta si radio pa da ti znamo tocno reci sta si fullo?!!!

//-------------------rampa---------------------------

if(strcmp(cmdtext,"/Otvori",true)==0)
{
    if(PlayerInfo[playerid][pAdmin] == 4)//e vidite ovo 4 i pAdmin to je da rampu moze dignuti samo admin lvl 4 a vi mozete tu staviti da je lider moze samo otvoriti ili mjenjati admin lvl
    {
SetObjectRot(rampa,  -1572.1217041016, 658.61749267578, 7.078125 ); //ovdje inace idu kordinate ali posto je SetObjectRot idu ona zadnja tri broja iz koordinata
SendClientMessage(playerid, COLOR_GREEN, "Dizete Rampu.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi Admin lvl4.");
}
return 1;
}
if(strcmp(cmdtext,"/Zatvori",true)==0)
{
    if(PlayerInfo[playerid][pAdmin] == 4)//ovdje isto mozete mijenjat
    {
SetObjectRot(rampa, -1572.1217041016, 658.61749267578, 7.078125 ); kordinate zatvorene rampe takoder idu ona zadnja tri broja u koordinatama
SendClientMessage(playerid, COLOR_GREEN, "Spustate rampu.");
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "Nisi Admin lvl4.");
}
return 1;
}

Evo kako izgleda

U.S.A

Evo ja sam ti napravio pa ubaci i vidi dali radui (Kad ubacujes Kapju (objekt) stavis bez STREAMera tak ak si stavio sa streamerom nece raditi sigurno)

   if (strcmp(cmdtext, "/otvori", true, 10)==0)
{
if(PlayerInfo[playerid][pAdmin] == 4)
  {
MoveObject(rampa, -1572.1217041016, 658.61749267578, 7.078125);
SendClientMessage(playerid, COLOR_YELLOW, "SUSTAV:Rampa se podize.");
}
else return
SendClientMessage(playerid, COLOR_GRAD1, "Morate biti administrator Level 4 za podizanje rampe!");
}

if (strcmp(cmdtext, "/zatvoti", true, 10)==0)
{
if(PlayerInfo[playerid][pAdmin] == 4)
  {
MoveObject(rampa, -1572.1217041016, 658.61749267578, 7.078125);
SendClientMessage(playerid, COLOR_YELLOW, "SUSTAV:Rampa se spušta.");
}
else return
SendClientMessage(playerid, COLOR_GRAD1, "Morate biti administrator Level 4 za zatvaranje rampe!");
}
Poslednja Izmena: April 17, 2010, 23:08:56 POSLE PODNE od |GAMER|