BTomas 0 Odesláno: 25. Březen, 2016 Share Odesláno: 25. Březen, 2016 Jak mam udelat, kdyz hrac napise prikaz nejaky ktery neexistuje, tak aby mu to napsalo treba: Tento prikaz neexistuje a jakychkoliv prikazu ktery neexistuji Link to comment Share on other sites More sharing options...
0 Kvostyc 4 Odesláno: 25. Březen, 2016 Share Odesláno: 25. Březen, 2016 public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if(success == 0)return SCM(playerid,0xFFFFFFAA,"SERVER: Príkaz neexistuje -> /help nebo /prikazy"); return 1; } Link to comment Share on other sites More sharing options...
0 BTomas 0 Odesláno: 25. Březen, 2016 Author Share Odesláno: 25. Březen, 2016 C:\Documents and Settings\Vul\Plocha\FilterScripts\mod.pwn(311) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandPerformed") C:\Documents and Settings\Vul\Plocha\FilterScripts\mod.pwn(313) : error 017: undefined symbol "SCM" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. radek 311: public OnPlayerCommandPerformed(playerid, cmdtext[], success) radek 313: if(success == 0)return SCM(playerid,0xFFFFFFAA,"SERVER: Príkaz neexistuje -> /help nebo /prikazy"); celé zde: public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if(success == 0)return SCM(playerid,0xFFFFFFAA,"SERVER: Príkaz neexistuje -> /help nebo /prikazy"); return 1; } Link to comment Share on other sites More sharing options...
0 Deleted User 295 Odesláno: 25. Březen, 2016 Share Odesláno: 25. Březen, 2016 prepis SCM na SendClientMessage Link to comment Share on other sites More sharing options...
0 BTomas 0 Odesláno: 25. Březen, 2016 Author Share Odesláno: 25. Březen, 2016 C:\Documents and Settings\Vul\Plocha\FilterScripts\mod.pwn(316) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandPerformed") public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if(success == 0)return SendClientMessage(playerid,0xFFFFFFAA,"[ SP ] Příkaz neexistuje"); return 1; } Link to comment Share on other sites More sharing options...
0 Deleted User 295 Odesláno: 25. Březen, 2016 Share Odesláno: 25. Březen, 2016 nemas tam tu fci 2x? Pouzivas vubec ZCMD? Link to comment Share on other sites More sharing options...
0 BTomas 0 Odesláno: 25. Březen, 2016 Author Share Odesláno: 25. Březen, 2016 ne nemam to tam dvakrat je to v modu ale je to jen warning Link to comment Share on other sites More sharing options...
0 Andrey 31 Odesláno: 25. Březen, 2016 Share Odesláno: 25. Březen, 2016 Pokud nepouzivas zcmd tak u OnPlayerCommandText dej misto return 0 tohle return SendClientMessage(playerid, -1, "Prikaz neexistuje bla bla bla"); Link to comment Share on other sites More sharing options...
0 BTomas 0 Odesláno: 25. Březen, 2016 Author Share Odesláno: 25. Březen, 2016 furt stejny warning Link to comment Share on other sites More sharing options...
0 mxco 55 Odesláno: 25. Březen, 2016 Share Odesláno: 25. Březen, 2016 Nejvtipnější je, že to co mu nadiktujete jen nakopíruje a vloží a tím skončí Link to comment Share on other sites More sharing options...
0 Andrey 31 Odesláno: 25. Březen, 2016 Share Odesláno: 25. Březen, 2016 (upraveno) Nejvtipnější je, že to co mu nadiktujete jen nakopíruje a vloží a tím skončí tak se nejlepe uci furt stejny warning Dej pryc public OnPlayerCommandPerformed Edited 25. Březen, 2016 by Andrej69 Link to comment Share on other sites More sharing options...
0 BTomas 0 Odesláno: 25. Březen, 2016 Author Share Odesláno: 25. Březen, 2016 Jo to je nejlepší učení, zkopíruju zapamatuju.. :D Jinak Díky funguje.. Lock Link to comment Share on other sites More sharing options...
Dotaz
BTomas 0
Jak mam udelat, kdyz hrac napise prikaz nejaky ktery neexistuje, tak aby mu to napsalo treba: Tento prikaz neexistuje a jakychkoliv prikazu ktery neexistuji
Link to comment
Share on other sites
11 odpovědí na tuto otázku
Recommended Posts