Encountered an error - 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: Encountered an error (
/showthread.php?tid=198494)
Encountered an error -
ba200101 - 12.12.2010
Version: RC4-2.....
My English is not very good, never mind
The public OnPlayerUpdate(playerid) There have been mistakes
public OnPlayerUpdate(playerid){
new string[256];
format(string,256," ammo %d",GetPlayerAmmo(playerid));
SendClientMessage(playerid, 0xFF0000AA, string);}
Ammo in the car I will be 0, whether I get any weapons M4, AK47 Desert Eagle
However, the road is functioning properly
Please tell me this is not a Bug ... Thank you
Re: Encountered an error -
DVDK - 12.12.2010
Can't understand you, but doing something like this in OnPlayerUpdate, and especially using 256 strings is not good.
Re: Encountered an error -
ba200101 - 12.12.2010
In short, GetPlayerAmmo exception can not use this function
In 0.3B functioning normally, as it is to copy the string 256 does not affect the
Re: Encountered an error -
ba200101 - 12.12.2010
Understanding, and, if the engine did not launch, and that the driver's seat seat in the non-use of GetPlayerAmmo ();
The number of ammunition will not catch ....
Re: Encountered an error -
The_Moddler - 12.12.2010
He just says that GetPlayerAmmo being on a vehicle returns 0 bullets, I could be a bug.
Re: Encountered an error -
CyNiC - 12.12.2010
It's look like:
https://sampforum.blast.hk/showthread.php?tid=197902
Re: Encountered an error -
ba200101 - 13.12.2010
Yes , Right Thank you for your understanding =]
If Did not start the engine because this function would be abnormal
My English is so bad.......