Please help this error. i fixed it alot but not working. - 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: Please help this error. i fixed it alot but not working. (
/showthread.php?tid=478717)
Please help this error. i fixed it alot but not working. -
LuisPark - 30.11.2013
Код HTML:
new v = GetPlayerVehicle(b, vehicleid);
new VehicleId[MAX_PLAYERS];
if(GetPlayerState(a) == PLAYER_STATE_DRIVER)
{
if(SpeedCameras[b][_usemph] == 0)
{
SendClientMessageEx(a,0xFF1E00FF,"sisis","You are driving too fast! you got busted driving ",speed,"kmh where you were allowed to drive ",limit, "kmh.");
SendClientMessageEx(a,0xFF1E00FF,"sis","You got yourself a fine of $",SpeedCameras[b][_fine],".");
} else {
SendClientMessageEx(a,0xFF1E00FF,"sisis","You are driving too fast! you got busted driving ",speed,"mph where you were allowed to drive ",limit, "mph.");
SendClientMessageEx(a,0xFF1E00FF,"sis","You got yourself a fine of $",SpeedCameras[b][_fine],".");
}
GivePlayerCash(a, - SpeedCameras[b][_fine]);
PlayerVehicleInfo[b][v][pvTicket] += 1000;
And this is error
PHP код:
C:\osama\gamemodes\abcs.pwn(105467) : error 017: undefined symbol "vehicleid"
please help me
Re: Please help this error. i fixed it alot but not working. -
Mitchy - 01.12.2013
show me your 105467th line.
Re: Please help this error. i fixed it alot but not working. -
Loot - 01.12.2013
GetPlayerVehicle has only 1 paremeter. (playerid)
I believe the error is located at the first line of the code, fix it by removing the 'vehicleid' at the end of the line.
pawn Код:
new v = GetPlayerVehicle(a);
new VehicleId[MAX_PLAYERS];
if(GetPlayerState(a) == PLAYER_STATE_DRIVER)
{
if(SpeedCameras[b][_usemph] == 0)
{
SendClientMessageEx(a,0xFF1E00FF,"sisis","You are driving too fast! you got busted driving ",speed,"kmh where you were allowed to drive ",limit, "kmh.");
SendClientMessageEx(a,0xFF1E00FF,"sis","You got yourself a fine of $",SpeedCameras[b][_fine],".");
} else {
SendClientMessageEx(a,0xFF1E00FF,"sisis","You are driving too fast! you got busted driving ",speed,"mph where you were allowed to drive ",limit, "mph.");
SendClientMessageEx(a,0xFF1E00FF,"sis","You got yourself a fine of $",SpeedCameras[b][_fine],".");
}
GivePlayerCash(a, - SpeedCameras[b][_fine]);
PlayerVehicleInfo[b][v][pvTicket] += 1000;