My script is not smart enought to Calculate ^^
#1

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?
Reply
#2

strafkmh's not a float, and your trying to input a float into it, strafe needs to be a float also.
Reply
#3

Edit:

okay .. it wont work ...

It says me i have to pay 10867215896715 Euro ?!?!?!?!?!?!

why this happens
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)