Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: 219
1. error 219;
Siemka. Czy mo?e mi kto? wyt?umaczy? dlaczego mam error 219? Za odpowied? dam piwko i respekt. Poni?ej zamieszczam kod oraz tre?? jego.

[pawn]
dcmd_changerank(playerid, params[])
{
new RANK = PLAYER_RANK[playerid];
if(RANK == 8 || RANK == 7 || RANK == 6 || RANK == 5)
{
new id;
new RANK;
new PLAYER[64];
new Gname[MAX_PLAYER_NAME];
GetPlayerName(playerid, Gname, sizeof(Gname));
format(PLAYER, sizeof(PLAYER), "/acconts/%s.ini", Gname);
if(dini_Exists(PLAYER))
{
if(sscanf(params, "ui", id, RANK))
{
SendClientMessage(playerid, COLOR_RED, "U?yj: /changerank [ID] [Ranga]");
}
else if(id == INVALID_PLAYER_ID)
{
SendClientMessage(playerid, COLOR_RED, "Gracza o tym ID nie ma na serwerze.");
return 1;
}
else if(PLAYER_RANK[id] == RANK)
{
SendClientMessage(playerid, COLOR_RED, "Gracz o podanym ID posiada ju? t? rang?.");
return 1;
}
else
{
PLAYER_RANK[id] = RANK;
dini_IntSet(PLAYER, "Rank", RANK);
SendClientMessage(playerid, COLOR_DEFAULT, "Pomy?lnie zmieniono graczowi rang?.");
SendClientMessage(id, COLOR_DEFAULT, "Administrator zmieni? Tobie rang?.");
}
return 1;
}
return 1;
}
else
{...
2. [INNE] warning 219
Czesc znowu mam ma?e warringi wiem ze i tak przerobi na amx ale nie chce zadnych warringow ;d

:arrow: :piwo:

Kod:


C:UsersxxxxxDesktopGreenTruck 1.0.pwn(14078) : warning 219: local variable "doors" shadows a variable at a preceding level
C:UsersxxxxxDesktopGreenTruck 1.0.pwn(14078) : warning 219: local variable "lights" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.




Linijka

Kod:


new panels, doors, lights, tires;