06.03.2009, 13:04
Hello,
i made a "Speeding Control" System for my Gamemode...
This is the Code:
all works fine ... but when i complie it says me:
Error Line:
Can anyone help me?
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 ~~~~~~~~~~~~~~~~~~");
}
}
Код:
C:\DOKUME~1\Plato\Desktop\GM\EUROVE~1\GAMEMO~1\grl.pwn(8051) : warning 213: tag mismatch
pawn Код:
new strafkmh = distance - 50;
Can anyone help me?