Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: NemUs.Eazy poslato Oktobar 05, 2011, 22:57:18 POSLE PODNE

Naslov: [Pomoc]Erori i warninzi :)
Poruka od: NemUs.Eazy poslato Oktobar 05, 2011, 22:57:18 POSLE PODNE
Skripta koju koristim:FS
Detaljan opis problema:Warninzi i Errori
Dio skripte:
zcmd.inc(62) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
zcmd.inc(64) : error 017: undefined symbol "funcidx"
zcmd.inc(64) : warning 215: expression has no effect
zcmd.inc(64) : error 001: expected token: ";", but found ")"
zcmd.inc(64) : error 029: invalid expression, assumed zero
zcmd.inc(64) : 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.



Moderator:
Pisi naslove tema normalno ili cu ih zakljucavati  ;)
Naslov: Odg: [PoMoc]Erori i warninzi :)
Poruka od: ``G´´ poslato Oktobar 05, 2011, 23:47:03 POSLE PODNE
Daj taj red di su ti errori i 3 reda povise i ispod njega
Naslov: Odg: [PoMoc]Erori i warninzi :)
Poruka od: NemUs.Eazy poslato Oktobar 05, 2011, 23:52:17 POSLE PODNE
Citat: [BM]``G´´ poslato Oktobar 05, 2011, 23:47:03 POSLE PODNE
Daj taj red di su ti errori i 3 reda povise i ispod njega
public OnGameModeInit()
zcmd_g_HasOPCS = funcidx("OnPlayerCommandReceived") != -1;
Naslov: Odg: [PoMoc]Erori i warninzi :)
Poruka od: ``G´´ poslato Oktobar 06, 2011, 00:13:39 PRE PODNE
Citat: NemUs.Eazy poslato Oktobar 05, 2011, 23:52:17 POSLE PODNE
Citat: [BM]``G´´ poslato Oktobar 05, 2011, 23:47:03 POSLE PODNE
Daj taj red di su ti errori i 3 reda povise i ispod njega
public OnGameModeInit()
zcmd_g_HasOPCS = funcidx("OnPlayerCommandReceived") != -1;


Na pocetku skripte napisi

new funcidx = ("OnPlayerCommandReceived") != -1;

a ta bi ti tribala izgledat onda ovako

zcmd_g_HasOPCS = funcidx;