SA-MP Forums Archive
Tag Mismatch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Tag Mismatch (/showthread.php?tid=486658)



Tag Mismatch - Blademaster680 - 09.01.2014

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);



Re: Tag Mismatch - Patrick - 09.01.2014

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;



Re: Tag Mismatch - Blademaster680 - 09.01.2014

Thanks it worked +REP