Help with gangsterlevel!
#1

Hi! I need help, I want to make gangsterlevel, and I want that they increase the respect +10 points! The respect points should go until 100, GODFATHER THEN! And the most important thing: The levels(OG, ...) should be written beside the playername in the game!!!

pawn Код:
CMD:og(playerid, params[])
{
    new gangsterrank[MAX_PLAYER_NAME], new gangsterlevel, id;
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
        if (sscanf(params, "ui", id, gangsterlevel)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /set_glevel [id] [gangsterlevel]");
        if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "System: Invalid ID");
        GetPlayerName(id, gangstername, sizeof(gangstername));
        new str[128];
        format(str,128,"System: %s [ID %d] has set %s [ID %d] gangsterlevel to %i",adminname, playerid, gangsterrank, id, gangsterlevel);
        SendClientMessage(playerid,COLOR_YELLOW,str);
        return 1;
    }
    else return SendClientMessage(playerid,COLOR_RED,"  You are not allowed to use this command!");
}
Well, it isn't finished yet, and I dunno how to continue....Can you help me?

It gives me also 7 errors!

Код:
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(106) : error 001: expected token: "-identifier-", but found "new"
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(109) : error 017: undefined symbol "id"
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(110) : error 017: undefined symbol "id"
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(111) : error 017: undefined symbol "id"
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(111) : error 017: undefined symbol "gangstername"
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(111) : error 029: invalid expression, assumed zero
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(111) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


7 Errors.
Reply


Messages In This Thread
Help with gangsterlevel! - by samtey - 02.08.2011, 18:26
Re: Help with gangsterlevel! - by Kush - 02.08.2011, 18:29
AW: Help with gangsterlevel! - by samtey - 02.08.2011, 18:32
AW: Help with gangsterlevel! - by samtey - 02.08.2011, 19:22
Re: Help with gangsterlevel! - by wups - 02.08.2011, 19:43
AW: Help with gangsterlevel! - by samtey - 02.08.2011, 20:11
AW: Help with gangsterlevel! - by samtey - 02.08.2011, 20:50
AW: Help with gangsterlevel! - by samtey - 03.08.2011, 06:53
Re: Help with gangsterlevel! - by GangsTa_ - 03.08.2011, 10:21
AW: Help with gangsterlevel! - by samtey - 03.08.2011, 10:47

Forum Jump:


Users browsing this thread: 1 Guest(s)