SA-MP Forums Archive
help error please - 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: help error please (/showthread.php?tid=115659)



help error please - rs2fun111 - 25.12.2009

got resolved it


Re: help error please - Pawno_Master - 25.12.2009

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
       #pragma ret_mempcy
	if (PRESSED(KEY_SPRINT))
	{
       if(IsPlayerInAnyVehicle(playerid))
	{
       RepairVehicle(GetPlayerVehicleID(playerid));
       SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!");
       }
       {
       else SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
	}
	}
       }
	return 1;
}
Try this.
If it don't work than tell me what line line 1046 is.