Jump to content
  • 0

pomoc GivePlayerWeapon přes input dialog


ZlinPawner

Dotaz

Nazdar, mám tu problém chtěl bych a číslo (id zbraně),které jsem napsal do input dialogu se dopsalo do funkce GivePlayerWeapon(playerid,tu to číslo,a náboje.vypadá to takhle

 

//Admin Gun shop

if(dialogid == ADMIN_GUN)

{

if(response == 1)

{

if(!strlen(inputtext))

{

SendClientMessage(playerid,COLOR_RED,"Id zbraně nebylo zadáno");

ShowPlayerDialog(playerid, ADMIN_GUN, DIALOG_STYLE_INPUT, "Zbraně", "Zadej ID zbraně", "Ok", "Zavřít");

return 1;

}

else

{

GivePlayerWeapon(playerid,inputtext,50)

return 1;

}

}

if(response == 2)

{

return 1;

}

}

 

problém je v tom že mi to háže error: error 035: argument type mismatch (argument 2)

omlouvám se ale nevím jak se píše spoiler tak to píši sem

Děkuji za odpověd

Edited by QWER
Hranatá zátvorka sa nepoužíva (nato sú tu tagy)
Link to comment
Share on other sites

2 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...