[Pomoc] Oko apm

Započeo |TED| Boca SRB, Novembar 30, 2013, 14:47:08 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:gtarp
Detaljan opis problema:e ovako pokusavam da ubacim apm ali mi daje erore i to 7 erora jos samo stavio gore kod komande new giveplayerid; i opet. Moze li pomoc??
Dio skripte: COMMAND:apm(playerid, params[])
{
     new id, ttext[32], string[128];
     if(sscanf(params, "us[32]", id, ttext))
     {
            SendClientMessage(playerid, -1, "/amp [id/dio imena] [text]");
            return 1;
     }
     if (PlayerInfo[playerid][pAdmin] > 1)
     {
        new giveplayer[MAX_PLAYER_NAME], new giveplayerid, sendername[MAX_PLAYER_NAME];
        GetPlayerName(playerid, sendername, sizeof(sendername));
        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
        format(string, sizeof(string), "Admin %s kaze: %s", sendername, ttext);
        SendClientMessage(giveplayerid, 0xFFFFFFF, string);
        printf("Admin %s(ID: %d) -> %s(ID: %d): %s", sendername, playerid, giveplayer, giveplayerid, result);
        format(string, sizeof(string), "Admin %s -> %s(ID: %d): %s", sendername, giveplayer, giveplayerid, ttext);
        SendAdminMessage(0xFFFFFFF, string);
        format(string, sizeof(string), "Poruka poslana igracu %s(ID: %d).", giveplayer, giveplayerid);
    SendClientMessage(playerid,  0xFFFFFFF, string);
}
        else return SendClientMessage(playerid, -1, "Nisi admin");
return 1;
}
}
Evo Erora C:\Users\Boris\Desktop\Balkan State  GTA RP\gamemodes\BSRP.pwn(41701) : warning 219: local variable "giveplayer" shadows a variable at a preceding level
C:\Users\Boris\Desktop\Balkan State  GTA RP\gamemodes\BSRP.pwn(41701) : error 001: expected token: "-identifier-", but found "new"
C:\Users\Boris\Desktop\Balkan State  GTA RP\gamemodes\BSRP.pwn(41703) : error 017: undefined symbol "giveplayerid"
C:\Users\Boris\Desktop\Balkan State  GTA RP\gamemodes\BSRP.pwn(41705) : error 017: undefined symbol "giveplayerid"
C:\Users\Boris\Desktop\Balkan State  GTA RP\gamemodes\BSRP.pwn(41706) : error 017: undefined symbol "giveplayerid"
C:\Users\Boris\Desktop\Balkan State  GTA RP\gamemodes\BSRP.pwn(41707) : error 017: undefined symbol "giveplayerid"
C:\Users\Boris\Desktop\Balkan State  GTA RP\gamemodes\BSRP.pwn(41709) : error 017: undefined symbol "giveplayerid"
C:\Users\Boris\Desktop\Balkan State  GTA RP\gamemodes\BSRP.pwn(41715) : error 054: unmatched closing brace ("}")

Neke slike/video za lakse dobivanje pomoci(neobavezno):