02.08.2011, 18:26
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!!!
Well, it isn't finished yet, and I dunno how to continue....Can you help me?
It gives me also 7 errors!
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!");
}
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.