26.12.2016, 03:51
Hey. Quick question. Have the ID of the zombie (a dead red man) ? I found only part of him. (http://dev.prineside.com/en/gtasa_sa.../search/?q=kmb)
Hey. Quick question. Have the ID of the zombie (a dead red man) ? I found only part of him. (http://dev.prineside.com/en/gtasa_sa.../search/?q=kmb)
|
stock GetPlayerHealthArmour(playerid)
{
new Float:total;
total += GetPlayerHealth(playerid);
total += GetPlayerArmour(playerid);
return total; // <--- warning 213: tag mismatch
}
PHP код:
|
stock Float:GetPlayerHealthArmour(playerid)
new
Float:player_Health,
Float:player_Armour
;
GetPlayerHealth(playerid, player_Health);
GetPlayerArmour(playerid, player_Armour);
player_Health += player_Armour; //Can be considered as the total.
new string[30];
format(string,sizeof(string),"Wanted Level: %d",GetPlayerWantedLevel(playerid));
SendClientMessage(0,-1,string);"
For your first question, https://sampforum.blast.hk/showthread.php?tid=375180.
For your second question, 16 should be enough cells assuming you're not using wanted levels over 9. You only really need to use the amount of characters you can possibly have + 1. In this case, Wanted Level: 6 would take up 15 characters, add one to account for the null terminator. |
true and false are translated to 1 & 0 in pawn, SetTimer always gives the timerID which is a positive non-zero number, it basically sets Something to true thats all.
|
Something = bool: SetTimer("SomethingTimer", 1000, false);
#if GetVehiclePoolSize() >= 500
new LastShamal[MAX_PLAYERS char],
SVW,
ShamalVW[MAX_VEHICLES char];
#else
new LastShamal[MAX_PLAYERS],
SVW,
ShamalVW[MAX_VEHICLES];
#endif
So creating another per players var. is more efficiant than a timer per player?
EDIT: Isn't that possible ? PHP код:
|