Jump to content

pomoc Vybava


majkyxxx

Recommended Posts

Č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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...