C:\Users\User.User-PC\Downloads\JakartaGamers-Roleplay-v1.6.0\JakartaGamers Roleplay\Aman\gamemodes\a.pwn(37649) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
C:\Users\User.User-PC\Downloads\JakartaGamers-Roleplay-v1.6.0\JakartaGamers Roleplay\Aman\gamemodes\a.pwn(37649) : warning 215: expression has no effect
C:\Users\User.User-PC\Downloads\JakartaGamers-Roleplay-v1.6.0\JakartaGamers Roleplay\Aman\gamemodes\a.pwn(37649) : error 001: expected token: ";", but found "]"
C:\Users\User.User-PC\Downloads\JakartaGamers-Roleplay-v1.6.0\JakartaGamers Roleplay\Aman\gamemodes\a.pwn(37649) : error 029: invalid expression, assumed zero
C:\Users\User.User-PC\Downloads\JakartaGamers-Roleplay-v1.6.0\JakartaGamers Roleplay\Aman\gamemodes\a.pwn(37649) : fatal error 107: too many error messages on one line
Code CMD:admins
Код:
CMD:admins(playerid, params[])
{
new string[128];
foreach(new i : Player)
{
if(pInfo[i][pAdmin] > 0 && pInfo[i][pHide] == 0)
{
if(PlayerData[i][pAdminDuty]) format(string,sizeof(string), "%s(%s): %s(ID: %i) Status: {4BB74C}Administrating", ReturnName(i, 0), PlayerData[i][pAdmin],string);
else format(string,sizeof(string), "%s(%s): %s(ID: %i) Status: {FF0000}Roleplaying", ReturnName(i, 0), PlayerData[i][pAdmin],string);
}
else format(string,sizeof(string), "There's no online Administrators.");
}
ShowPlayerDialog(playerid, AdminList, DIALOG_STYLE_TABLIST, "Adminitrators", string, "OK", "");
return 1;
}
Error COde
Код:
if(pInfo[i][pAdmin] > 0 && pInfo[i][pHide] == 0)