03.02.2014, 00:32
Hey guys, i got some errors and i want to fix it, here is the errors and codes.
Errors:
Code
Line 85965 is
Errors:
Код:
C:\Users\For SAMP\Desktop\s\gamemodes\RGRP.pwn(85965) : error 017: undefined symbol "fVehSpeed" C:\Users\For SAMP\Desktop\s\gamemodes\RGRP.pwn(85965) : error 001: expected token: ";", but found "]" C:\Users\For SAMP\Desktop\s\gamemodes\RGRP.pwn(85965) : error 001: expected token: ";", but found ")" C:\Users\For SAMP\Desktop\s\gamemodes\RGRP.pwn(85965) : fatal error 107: too many error messages on one line
PHP код:
fCurrentSpeed = player_get_speed(i);
if(PlayerInfo[i][pAdmin] <= 1) switch(Seatbelt[i]) {
case 0: if(fVehSpeed[i] - fCurrentSpeed > 40.0) GetPlayerHealth(i, fExpHealth), SetPlayerHealth(i, fExpHealth - (fVehSpeed[i] - fCurrentSpeed) / 2.0);
default: if(fVehSpeed[i] - fCurrentSpeed > 40.0) GetPlayerHealth(i, fExpHealth), SetPlayerHealth(i, fExpHealth - ((fVehSpeed[i] - fCurrentSpeed) / 4.0));
}
PHP код:
case 0: if(fVehSpeed[i] - fCurrentSpeed > 40.0) GetPlayerHealth(i, fExpHealth), SetPlayerHealth(i, fExpHealth - (fVehSpeed[i] - fCurrentSpeed) / 2.0);