Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: R0x0r poslato Maj 19, 2012, 20:24:31 POSLE PODNE

Naslov: [Pomoc] Opis
Poruka od: R0x0r poslato Maj 19, 2012, 20:24:31 POSLE PODNE


Skripta koju koristim: **RP
Detaljan opis problema: Kada izbrisem #if defined FILTERSCRIPT javlja ovo C:\Users\N\Desktop\City Life RolePlay v2.0\gamemodes\bcrp.pwn(121) : error 001: expected token: ";", but found "forward"
C:\Users\N\Desktop\City Life RolePlay v2.0\gamemodes\bcrp.pwn(131) : error 026: no matching "#if..."
C:\Users\N\Desktop\City Life RolePlay v2.0\gamemodes\bcrp.pwn(140) : error 026: no matching "#if..."
C:\Users\N\Desktop\City Life RolePlay v2.0\gamemodes\bcrp.pwn(166) : warning 219: local variable "gPlayerLogged" shadows a variable at a preceding level
C:\Users\N\Desktop\City Life RolePlay v2.0\gamemodes\bcrp.pwn(186) : warning 201: redefinition of constant/macro (symbol "pInfo")
C:\Users\N\Desktop\City Life RolePlay v2.0\gamemodes\bcrp.pwn(187) : error 021: symbol already defined: "pAdminLevel"
C:\Users\N\Desktop\City Life RolePlay v2.0\gamemodes\bcrp.pwn(191) : warning 219: local variable "PlayerInfo" shadows a variable at a preceding level
C:\Users\N\Desktop\City Life RolePlay v2.0\gamemodes\bcrp.pwn(191) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\N\Desktop\City Life RolePlay v2.0\gamemodes\bcrp.pwn(194) : warning 219: local variable "gPlayerLogged" shadows a variable at a preceding level
C:\Users\N\Desktop\City Life RolePlay v2.0\gamemodes\bcrp.pwn(237) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
C:\Users\N\Desktop\City Life RolePlay v2.0\gamemodes\bcrp.pwn(237) : warning 215: expression has no effect
C:\Users\N\Desktop\City Life RolePlay v2.0\gamemodes\bcrp.pwn(237) : error 001: expected token: ";", but found "]"
C:\Users\N\Desktop\City Life RolePlay v2.0\gamemodes\bcrp.pwn(237) : error 029: invalid expression, assumed zero
C:\Users\N\Desktop\City Life RolePlay v2.0\gamemodes\bcrp.pwn(237) : fatal error 107: too many error messages on one line

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


9 Errors.

Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Naslov: Odg: [Pomoc] Opis
Poruka od: R0x0r poslato Maj 19, 2012, 21:40:02 POSLE PODNE
****BUMP*
Naslov: Odg: [Pomoc] Opis
Poruka od: kiddo poslato Maj 19, 2012, 21:43:54 POSLE PODNE
Brisi sve do #endif.
Naslov: Odg: [Pomoc] Opis
Poruka od: R0x0r poslato Maj 19, 2012, 21:58:26 POSLE PODNE
C:\Users\N\Desktop\City Life RolePlay v2.0\gamemodes\bcrp.pwn(123) : error 001: expected token: ";", but found "enum"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


//ENUM

enum pInfo
{
    pAdminLevel,
    pCash,
    pLevel,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Naslov: Odg: [Pomoc] Opis
Poruka od: Vegas. poslato Maj 19, 2012, 22:00:44 POSLE PODNE
//ENUM

enum pInfo
{
    pAdminLevel,
    pCash,
    pLevel,
};
new PlayerInfo[MAX_PLAYERS][pInfo];
Naslov: Odg: [Pomoc] Opis
Poruka od: R0x0r poslato Maj 19, 2012, 22:05:27 POSLE PODNE
Citat: [DV] Vegas. poslato Maj 19, 2012, 22:00:44 POSLE PODNE
//ENUM

enum pInfo
{
    pAdminLevel,
    pCash,
    pLevel,
};
new PlayerInfo[MAX_PLAYERS][pInfo];








isto
Naslov: Odg: [Pomoc] Opis
Poruka od: vlado_plavsic poslato Maj 19, 2012, 22:06:27 POSLE PODNE
Pre toga ti je to.Zaboravio si da na kraj dodas ";" .

Ako nemozes da se snadjes daj 10 redova iznad te linje na kojoj baca error.
Naslov: Odg: [Pomoc] Opis
Poruka od: R0x0r poslato Maj 19, 2012, 22:18:33 POSLE PODNE
Rjeseno ovo je zezalo

new sendername[MAX_PLAYER_NAME]

trebalo je ici

new sendername[MAX_PLAYER_NAME];