Tag Mismatch
#1

Tag Mismatch:
Код:
new fee = inputext*0.005;
Код:
new str[128];
				new inputext = strval(inputtext);
				new fee = inputext*0.005;
				PlayerInfo[playerid][pBank] += inputext;
				PlayerInfo[playerid][pCash] -= inputext;
				PlayerInfo[playerid][pCash] -= fee;
				format(str, sizeof(str), "You have deposited $%d into your account. ATM fee: %d New balance: $%d", inputext, fee, PlayerInfo[playerid][pBank]);
				SendClientMessage(playerid, 0x008000FF, str);
Reply
#2

Quote:
Originally Posted by Blademaster680
Посмотреть сообщение
Tag Mismatch:
Код:
new fee = inputext*0.005;
Код:
new str[128];
				new inputext = strval(inputtext);
				new fee = inputext*0.005;
				PlayerInfo[playerid][pBank] += inputext;
				PlayerInfo[playerid][pCash] -= inputext;
				PlayerInfo[playerid][pCash] -= fee;
				format(str, sizeof(str), "You have deposited $%d into your account. ATM fee: %d New balance: $%d", inputext, fee, PlayerInfo[playerid][pBank]);
				SendClientMessage(playerid, 0x008000FF, str);
fee should have Float tag because it's a Float not an integer

pawn Код:
new Float:fee = inputext*0.005;
Reply
#3

Thanks it worked +REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)