07.03.2017, 12:21
I registered, okay, so when soon again it says that my password is wrong even though it is right, and when I recover it my admin level is 0, and the GAdmins folder is in scriptfiles, what can it be?
\filterscripts\gadmin.pwn(756) : error 029: invalid expression, assumed zero \filterscripts\gadmin.pwn(756) : error 001: expected token: ")", but found ";" \filterscripts\gadmin.pwn(756) : warning 215: expression has no effect \filterscripts\gadmin.pwn(756) : error 001: expected token: ")", but found ";" \filterscripts\gadmin.pwn(756) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
for (new i, j = GetPlayerPoolSize(); i <= j; i++) |
C:\Users\Ali Computer\Desktop\GAdmin\filterscripts\gadmin.pwn(30) : fatal error 100: cannot read from file: "spectate" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
CMD:god(playerid)
{
if (!IsPlayerAdmin(playerid) && p_Account[playerid][E_ACCOUNT_ADMIN_LEVEL] < 1)
return SendClientMessage(playerid, COLOR_TOMATO, "Error: Only admin level 1 and above have access to this command.");
if (!p_Data[playerid][E_PDATA_GODMODE])
{
SetPlayerHealth(playerid, FLOAT_INFINITY);
GameTextForPlayer(playerid, "~g~Godmode on", 5000, 3);
}
else
{
SetPlayerHealth(playerid, 100.0);
GameTextForPlayer(playerid, "~r~Godmode off", 5000, 3);
}
p_Data[playerid][E_PDATA_GODMODE] = !p_Data[playerid][E_PDATA_GODMODE];
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
return 1;
}
Float:oldHealth[MAX_PLAYERS];
CMD:god(playerid)
{
if (!IsPlayerAdmin(playerid) && p_Account[playerid][E_ACCOUNT_ADMIN_LEVEL] < 1)
return SendClientMessage(playerid, COLOR_TOMATO, "Error: Only admin level 1 and above have access to this command.");
if (!p_Data[playerid][E_PDATA_GODMODE])
{
GetPlayerHealth(playerid, oldHealth[playerid]);
SetPlayerHealth(playerid, FLOAT_INFINITY);
GameTextForPlayer(playerid, "~g~Godmode on", 5000, 3);
}
else
{
SetPlayerHealth(playerid, oldHealth[playerid]);
GameTextForPlayer(playerid, "~r~Godmode off", 5000, 3);
}
p_Data[playerid][E_PDATA_GODMODE] = !p_Data[playerid][E_PDATA_GODMODE];
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
return 1;
}
original:
PHP Code:
PHP Code:
|
Click Me! Save this as spectate.inc in pawno/include and recompile.
|
new Float:oldHealth[MAX_PLAYERS];
new Float:health;
GetPlayerHealth(playerid, health);
SetPVarFloat(playerid, "oldHealth", health);
SetPlayerHealth(playerid, GetPVarFloat(playerid, "oldHealth"));