SA-MP Forums Archive
Who can fix this Problem ? - 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: Who can fix this Problem ? (/showthread.php?tid=394876)



Who can fix this Problem ? - AwokenNeoX - 24.11.2012

Error:

Код:
C:\Users\Admin\Desktop\UltimateFreeStyl\gamemodes\Reallife.pwn(240) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
1 Warning.


My Script:

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	GivePlayerMoney(playerid,-312.00);    <------- 240 LINE
	SendClientMessage(playerid,ROT,"~~~~~~~~~~~~~~~~~~Arztabrechnung~~~~~~~~~~~~~~~~~~");
	SendClientMessage(playerid,ROT,"Name des Arztes: Dr. Wolfgang");
	SendClientMessage(playerid,ROT,"Grund: Gestorben");
	SendClientMessage(playerid,ROT,"Praxisgebьhren: 10$");
	SendClientMessage(playerid,ROT,"Arztkosten: 301$");
	SendClientMessage(playerid,ROT,"Gesamt: 312,00$");
	SendClientMessage(playerid,ROT,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
	return 1;
}



Re: warning 213 ?!?! - shaPP - 24.11.2012

try GivePlayerMoney(playerid,-312);


Re: Who can fix this Problem ? - park4bmx - 24.11.2012

your using a float to set the money!


AW: Who can fix this Problem ? - AwokenNeoX - 24.11.2012

I want if the player did that he lost 312 $


Re: AW: Who can fix this Problem ? - park4bmx - 24.11.2012

Quote:
Originally Posted by AwokenNeoX
Посмотреть сообщение
Format ?
i typed it wrong but edited the last post, i mean float
so GivePlayerMoney(playerid,-312); show the same warning ?


Re: Who can fix this Problem ? - shaPP - 24.11.2012

Player Money are always integrer(123), not Float (123,012301203)


AW: Who can fix this Problem ? - AwokenNeoX - 24.11.2012

Ok I have it sry for my bad english

#closed