Čmoud 0 Odesláno: 13. Únor, 2013 Share Odesláno: 13. Únor, 2013 Mohly by jste mi to prosím opravit? warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg") Link to comment Share on other sites More sharing options...
0 FizzyCZE 4 Odesláno: 13. Únor, 2013 Share Odesláno: 13. Únor, 2013 Tento public je zastaralý = věci v něm se nevyvolají Pokud tam nic nemáš, tak tento public celý vymaž. pokud máš, tak budeš muset překopat stažený kód Link to comment Share on other sites More sharing options...
0 Čmoud 0 Odesláno: 13. Únor, 2013 Author Share Odesláno: 13. Únor, 2013 public OnPlayerPrivmsg(playerid, recieverid, text[]) { TestPrint("public OnPlayerPrivmsg(playerid, recieverid, text[])"); if(IsPlayerConnected(playerid)) { StatistikaWrite("PM Zpravy"); //-------------------------------------------------------------------------- if(Informace[playerid][umlceni] && Informace[recieverid][AdminLevel] < 1) { MLMWhite(playerid, "[ ! ] Jsi umlceny, PM muzes poslat pouze Administratorum /admins","[ ! ] Si umlceny, PM mozes poclat iba Administratorovi /admins"); return 0; } //-------------------------------------------------------------------------- else if(Informace[playerid][AdminLevel] == 0 && Informace[recieverid][AdminLevel] == 0) { new CZstring[90],SKstring[90],string[256]; format(CZstring, 90, "[ PM %s pise hraci %s ]",Jmeno(playerid),Jmeno(recieverid)); format(SKstring, 90, "[ PM %s pise hracovi %s ]",Jmeno(playerid),Jmeno(recieverid)); format(string,256,"[ %s ]" ,text); for(new i=0;i<MAX_PLAYERS_EX;i++) { if(IsPlayerConnected(i)) { if(Informace[i][AdminLevel] > 3) { MLMCerv(i,CZstring,SKstring); SendClientMessage(i,B_CERVENA,string); } } } } //-------------------------------------------------------------------------- } TestPrint("public OnPlayerPrivmsg(playerid, recieverid, text[]) END"); return true; } Mám tam toto stačilo napsat forward OnPlayerPrivmsg(playerid, recieverid, text[]); a je to OK bez Erroru a bez War díky Link to comment Share on other sites More sharing options...
0 Mivčo 90 Odesláno: 13. Únor, 2013 Share Odesláno: 13. Únor, 2013 Exis :d Link to comment Share on other sites More sharing options...
0 FizzyCZE 4 Odesláno: 13. Únor, 2013 Share Odesláno: 13. Únor, 2013 Čmoude, nevím ale, jestli ti to bude fungovat, když není nadefinovaná funkce parametrů... Link to comment Share on other sites More sharing options...
Dotaz
Čmoud 0
Mohly by jste mi to prosím opravit?
warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Link to comment
Share on other sites
4 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now