majkyxxx 0 Odesláno: 2. Únor, 2013 Share Odesláno: 2. Únor, 2013 Čaute. Prosím potrebujem HELP. Urobil som si príkaz /vybava ale hádže mi to ERROR pls HELP. ERROR: C:\Users\Toshiba\Desktop\pawno\Easy DeAMX\vybava.pwn(15) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase[/color] [color=#ff0000]1 Error. .PWN: #include <a_samp>[/color] [color=#ff0000]public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/vybava", true) == 0) { GivePlayerWeapon(playerid, 26, 100000000); GivePlayerWeapon(playerid, 31, 100000000); GivePlayerWeapon(playerid, 16, 100000000); GivePlayerWeapon(playerid, 32, 100000000); GivePlayerWeapon(playerid, 46, 100000000); GivePlayerWeapon(playerid, 35, 100000000); SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 100.0); SendClientMessageToAll(playerid, 0xFF2200FF, "!POZOR! Hráč %s sa vybavil pomocou príkazu /vybava !"); return 1; } return 0; } Link to comment Share on other sites More sharing options...
Hrb™ 48 Odesláno: 2. Únor, 2013 Share Odesláno: 2. Únor, 2013 U "SendClientMessageToAll" se nedává playerid. Takže jen takto: SendClientMessageToAll(0xFF2200FF, "... Link to comment Share on other sites More sharing options...
majkyxxx 0 Odesláno: 2. Únor, 2013 Author Share Odesláno: 2. Únor, 2013 Ok ide to diky LOCK Link to comment Share on other sites More sharing options...
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