help inputtext
#1

how to make this way to inputtext to this command

Quote:

if(!strcmp(cmdtext, "/imti", true, 5))
{

if(cmdtext[6]==0 || !IsNumeric(cmdtext[7]))
{
SendClientMessage(playerid,0xFF3E9EFF,"* Paimt pinigu is bankomato: /imti [kiek]");
return 1;
}

new kiek = StringToInt(cmdtext[7]);

if(playerDB[playerid][banke] < kiek)
{
SendClientMessage(playerid,0xE60000FF,"* Banke, jus tiek neturite!");
return 1;
}

playerDB[playerid][banke]-=kiek;
GivePlayerMoneyA(playerid,kiek);
ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 4.000000, 0, 0, 0, 0, -1);
return 1;
}

Reply
#2

Please put it in ['pawn]['/pawn] // without the '
Reply
#3

Quote:
Originally Posted by gedux123775
how to make this way to inputtext to this command

Quote:

if(!strcmp(cmdtext, "/imti", true, 5))
{

if(cmdtext[6]==0 || !IsNumeric(cmdtext[7]))
{
SendClientMessage(playerid,0xFF3E9EFF,"* Paimt pinigu is bankomato: /imti [kiek]");
return 1;
}

new kiek = StringToInt(cmdtext[7]);

if(playerDB[playerid][banke] < kiek)
{
SendClientMessage(playerid,0xE60000FF,"* Banke, jus tiek neturite!");
return 1;
}

playerDB[playerid][banke]-=kiek;
GivePlayerMoneyA(playerid,kiek);
ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 4.000000, 0, 0, 0, 0, -1);
return 1;
}

Reply
#4

Use dcmd or zcmd
https://sampwiki.blast.hk/wiki/Fast_Commands#dcmd
Reply
#5

I need a man here parastam ATM command
Reply
#6

Help
Reply
#7

HHHHEEEELLLLPPPP!!!!!!!
Reply
#8

Quote:
Originally Posted by gedux123775
I need a man here parastam ATM command
What? ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)