| 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
Linijka
|
|