10.12.2014, 13:30
Quote:
Replace 'ARRAY' in the code below with the array you use. If the values you want to compare are floats, replace 'new HighestValue;' with 'new Float:HighestValue;'.
pawn Код:
This should do it: pawn Код:
|
hummm,
What is wrong here? ,
It interrupts me the rest of the code..
(It should store all the weapons of the players)
PHP код:
for(new Slot; Slot < 12; Slot++)
{
GetPlayerWeaponData(iCount, Slot, Weapons_Storage[iCount][Slot][0], Weapons_Storage[iCount][Slot][1]);
}
PHP код:
for(new iCount; iCount < MAX_PLAYERS; iCount++) if(IsPlayerConnected(iCount) && In_Pyramid[iCount])
{
SetPlayerHealth(iCount, 100.0);
SetPlayerInArea(iCount, 2270.7515, 2384.8372, 1217.5714, 1351.8844, 60.0000);
SetPlayerInterior(iCount, 0);
SetPlayerVirtualWorld(iCount, PYRAMID_WORLD);
/* for(new Slot; Slot < 12; Slot++)
{
GetPlayerWeaponData(iCount, Slot, Weapons_Storage[iCount][Slot][0], Weapons_Storage[iCount][Slot][1]);
}*/
ResetPlayerWeapons(iCount);
GivePlayerWeapon(iCount, 38, 9999);
TogglePlayerControllable(iCount, false);
}