27.05.2013, 23:48
So the code sends me a bunch of undefined symbols, Im not sure how to end it correctly any help?
Код:
public OnPlayerUpdate(playerid) { // Do not put heavy cpu checks in here. Use the 1 second timer. if(playerTabbed[playerid] == 1) { playerTabbed[playerid] = 0; playerTabbedTime[playerid] = 0; } playerSeconds[playerid] = gettime(); if(GetPVarInt(playerid, "Injured") == 1) SetPlayerArmedWeapon(playerid, 0); if(GetPVarInt(playerid, "IsFrozen") == 1) TogglePlayerControllable(playerid, 0); new pCurWeap = GetPlayerWeapon(playerid); if(pCurWeap != pCurrentWeapon[playerid]) { OnPlayerChangeWeapon(playerid, pCurWeap); pCurrentWeapon[playerid] = pCurWeap; } } return 1; }