Encountered an error
#1

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

Can't understand you, but doing something like this in OnPlayerUpdate, and especially using 256 strings is not good.
Reply
#3

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
Reply
#4

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 ....
Reply
#5

He just says that GetPlayerAmmo being on a vehicle returns 0 bullets, I could be a bug.
Reply
#6

It's look like: https://sampforum.blast.hk/showthread.php?tid=197902
Reply
#7

Yes , Right Thank you for your understanding =]
If Did not start the engine because this function would be abnormal

My English is so bad.......
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)