Servus,
Ich habe ein Befehl gescriptet das ich die Adminranks sehen kann.
Hier der Code:
stock LoadAccount(playerid)
{
SpielerInfo[playerid][pEingeloggt] = true;
SpielerInfo[playerid][pGeld] = cache_get_field_content_int(0, "Geld", mysqlHandle), GivePlayerMoney(playerid, SpielerInfo[playerid][pGeld]);
SpielerInfo[playerid][pLevel] = cache_get_field_content_int(0, "Level", mysqlHandle), SetPlayerScore(playerid, SpielerInfo[playerid][pLevel]);
SpielerInfo[playerid][pKills] = cache_get_field_content_int(0, "Kills", mysqlHandle);
SpielerInfo[playerid][pTode] = cache_get_field_content_int(0, "Tode", mysqlHandle);
SpielerInfo[playerid][pAdminlevel] = cache_get_field_content_int(0, "Adminlevel", mysqlHandle), SpielerInfo[playerid][pAdminlevel];
SpielerInfo[playerid][pRank1] = cache_get_field_content_int(0, "Rank1", mysqlHandle), SpielerInfo[playerid][pRank1];
SpielerInfo[playerid][pRank2] = cache_get_field_content_int(0, "Rank2", mysqlHandle), SpielerInfo[playerid][pRank2];
SpielerInfo[playerid][pRank3] = cache_get_field_content_int(0, "Rank3", mysqlHandle), SpielerInfo[playerid][pRank3];
SpielerInfo[playerid][pRank4] = cache_get_field_content_int(0, "Rank4", mysqlHandle), SpielerInfo[playerid][pRank4];
SpielerInfo[playerid][pRank5] = cache_get_field_content_int(0, "Rank5", mysqlHandle), SpielerInfo[playerid][pRank5];
SpielerInfo[playerid][pRank6] = cache_get_field_content_int(0, "Rank6", mysqlHandle), SpielerInfo[playerid][pRank6];
SpielerInfo[playerid][pRank7] = cache_get_field_content_int(0, "Rank7", mysqlHandle), SpielerInfo[playerid][pRank7];
printf("Acc geladen (%s)",NamePlayer(playerid));
return 1;
}ocmd:arank(playerid)
{
new string[128];
format(string, sizeof(string),"Rank 1: %s\nRank 2: %s\nRank 3: %s\nRank 4: %s\nRank 5: %s\nRank 6: %s\nRank 7: %s\n\n",SpielerInfo[playerid][pRank1],SpielerInfo[playerid][pRank2],SpielerInfo[playerid][pRank3],SpielerInfo[playerid][pRank4],SpielerInfo[playerid][pRank5],SpielerInfo[playerid][pRank6],SpielerInfo[playerid][pRank7]);
ShowPlayerDialog(playerid,DIALOG_ARANK,DIALOG_STYLE_MSGBOX, "Arank",string,"Ok","");
return 1;
}
{
SpielerInfo[playerid][pEingeloggt] = true;
SpielerInfo[playerid][pGeld] = cache_get_field_content_int(0, "Geld", mysqlHandle), GivePlayerMoney(playerid, SpielerInfo[playerid][pGeld]);
SpielerInfo[playerid][pLevel] = cache_get_field_content_int(0, "Level", mysqlHandle), SetPlayerScore(playerid, SpielerInfo[playerid][pLevel]);
SpielerInfo[playerid][pKills] = cache_get_field_content_int(0, "Kills", mysqlHandle);
SpielerInfo[playerid][pTode] = cache_get_field_content_int(0, "Tode", mysqlHandle);
SpielerInfo[playerid][pAdminlevel] = cache_get_field_content_int(0, "Adminlevel", mysqlHandle), SpielerInfo[playerid][pAdminlevel];
SpielerInfo[playerid][pRank1] = cache_get_field_content_int(0, "Rank1", mysqlHandle), SpielerInfo[playerid][pRank1];
SpielerInfo[playerid][pRank2] = cache_get_field_content_int(0, "Rank2", mysqlHandle), SpielerInfo[playerid][pRank2];
SpielerInfo[playerid][pRank3] = cache_get_field_content_int(0, "Rank3", mysqlHandle), SpielerInfo[playerid][pRank3];
SpielerInfo[playerid][pRank4] = cache_get_field_content_int(0, "Rank4", mysqlHandle), SpielerInfo[playerid][pRank4];
SpielerInfo[playerid][pRank5] = cache_get_field_content_int(0, "Rank5", mysqlHandle), SpielerInfo[playerid][pRank5];
SpielerInfo[playerid][pRank6] = cache_get_field_content_int(0, "Rank6", mysqlHandle), SpielerInfo[playerid][pRank6];
SpielerInfo[playerid][pRank7] = cache_get_field_content_int(0, "Rank7", mysqlHandle), SpielerInfo[playerid][pRank7];
printf("Acc geladen (%s)",NamePlayer(playerid));
return 1;
}ocmd:arank(playerid)
{
new string[128];
format(string, sizeof(string),"Rank 1: %s\nRank 2: %s\nRank 3: %s\nRank 4: %s\nRank 5: %s\nRank 6: %s\nRank 7: %s\n\n",SpielerInfo[playerid][pRank1],SpielerInfo[playerid][pRank2],SpielerInfo[playerid][pRank3],SpielerInfo[playerid][pRank4],SpielerInfo[playerid][pRank5],SpielerInfo[playerid][pRank6],SpielerInfo[playerid][pRank7]);
ShowPlayerDialog(playerid,DIALOG_ARANK,DIALOG_STYLE_MSGBOX, "Arank",string,"Ok","");
return 1;
}
Hier die Warnings.
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(160) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(160) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(160) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(160) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(160) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(160) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(160) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(383) : warning 215: expression has no effect
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(384) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(384) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(384) : warning 215: expression has no effect
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(385) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(385) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(385) : warning 215: expression has no effect
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(386) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(386) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(386) : warning 215: expression has no effect
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(387) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(387) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(387) : warning 215: expression has no effect
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(388) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(388) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(388) : warning 215: expression has no effect
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(389) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(389) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(389) : warning 215: expression has no effect
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(390) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(390) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(390) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(160) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(160) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(160) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(160) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(160) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(160) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(383) : warning 215: expression has no effect
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(384) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(384) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(384) : warning 215: expression has no effect
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(385) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(385) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(385) : warning 215: expression has no effect
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(386) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(386) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(386) : warning 215: expression has no effect
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(387) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(387) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(387) : warning 215: expression has no effect
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(388) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(388) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(388) : warning 215: expression has no effect
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(389) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(389) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(389) : warning 215: expression has no effect
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(390) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(390) : warning 213: tag mismatch
C:\Users\Patrick\Desktop\IRP-City\gamemodes\Reallife-Skript.pwn(390) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
29 Warnings.