My script is not smart enought to Calculate ^^ - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: My script is not smart enought to Calculate ^^ (
/showthread.php?tid=67996)
My script is not smart enought to Calculate ^^ -
mirkoiz - 06.03.2009
Hello,
i made a "Speeding Control" System for my Gamemode...
This is the Code:
pawn Код:
if(PlayerToPoint(25.0,i,1214.4800, -939.4534, 42.6869))
{
if(distance > 50)
{
new strafkmh = distance - 50;
new strafe = strafkmh*10;
SendClientMessage(i, COLOR_YELLOW, "~~~~~~~~~~~~~~~~~~ Geblitzt ~~~~~~~~~~~~~~~~~~");
format(string, 256, " Geschwindigkeit: %.0f KM/H erlaubt: 50 KM/H",distance);
SendClientMessage(i, COLOR_YELLOW, string);
format(string, 256, " Kosten: %d",strafe);
SendClientMessage(i, COLOR_YELLOW, string);
SendClientMessage(i, COLOR_YELLOW, "~~~~~~~~~~~~~~~~~~ Geblitzt ~~~~~~~~~~~~~~~~~~");
}
}
all works fine ... but when i complie it says me:
Код:
C:\DOKUME~1\Plato\Desktop\GM\EUROVE~1\GAMEMO~1\grl.pwn(8051) : warning 213: tag mismatch
Error Line:
pawn Код:
new strafkmh = distance - 50;
Can anyone help me?
Re: My script is not smart enought to Calculate ^^ -
Norn - 06.03.2009
strafkmh's not a float, and your trying to input a float into it, strafe needs to be a float also.
Re: My script is not smart enought to Calculate ^^ -
mirkoiz - 06.03.2009
Edit:
okay .. it wont work ...
It says me i have to pay 10867215896715 Euro ?!?!?!?!?!?!
why this happens