Danny 37 Odesláno: 28. Leden, 2015 Share Odesláno: 28. Leden, 2015 (upraveno) Zdravím, dostávam následujúci error: error 010: invalid function or declaration riadky: public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(help, 4, cmdtext); return 1; } return 0; } predom Ďakujem za pomoc Edited 28. Leden, 2015 by Danny Link to comment Share on other sites More sharing options...
0 Mort 29 Odesláno: 28. Leden, 2015 Share Odesláno: 28. Leden, 2015 Proč tam máš 2x } a 2 returny???? Link to comment Share on other sites More sharing options...
0 Danny 37 Odesláno: 28. Leden, 2015 Author Share Odesláno: 28. Leden, 2015 Proč tam máš 2x } a 2 returny???? Veď toto je celok publicu OnPlayerCommandText public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; } len som tam vložil definíciu dcmd Link to comment Share on other sites More sharing options...
0 Deejva 36 Odesláno: 28. Leden, 2015 Share Odesláno: 28. Leden, 2015 public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(help, 4, cmdtext); return 0; } Link to comment Share on other sites More sharing options...
Dotaz
Danny 37
Zdravím, dostávam následujúci error:
error 010: invalid function or declaration
riadky:
predom Ďakujem za pomoc
Edited by DannyLink to comment
Share on other sites
3 odpovědí na tuto otázku
Recommended Posts