- 0
Sign in to follow this
Followers
0
Ошибка с командой /prefix
Asked by
User#6315
,
Question
Лучший ответ
Уберите затем сделайте свою проверку на админа к примеру PI[playerid][pAdmin] и тд...
This topic is now closed to further replies.
Sign in to follow this
Followers
0
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By huri
Помогите с плагином, который будет отключать игрока от сервера если он умер более 3 раз за 5 секунд
-
Posted · Report post
-------------------------------ОШИБКИ-------------------------------------- C:\Users\Desktop\rp\gamemodes\new.pwn(23166) : error 017: undefined symbol "PlayerInfo" C:\Users\Desktop\rp\gamemodes\new.pwn(23166) : warning 215: expression has no effect C:\Users\Desktop\rp\gamemodes\new.pwn(23166) : error 001: expected token: ";", but found "]" C:\Users\Desktop\rp\gamemodes\new.pwn(23166) : error 029: invalid expression, assumed zero C:\Users\Desktop\rp\gamemodes\new.pwn(23166) : fatal error 107: too many error messages on one line (23166) if(!strcmp(PlayerInfo[playerid][pNames], FD1, true) || !strcmp(PlayerInfo[playerid][pNames], FD2, true) || !strcmp(PlayerInfo[playerid][pNames], FD3, true)) -------------------------КОМАНДА----------------------------------------------- CMD:addprefix(playerid, params[]) { if(!strcmp(PlayerInfo[playerid][pNames], FD1, true) || !strcmp(PlayerInfo[playerid][pNames], FD2, true) || !strcmp(PlayerInfo[playerid][pNames], FD3, true)) { if(PlayerInfo[playerid][pAlcoInvenxua] != 12) return 1; new targetid_prefix, number_prefix; if(sscanf(params, "ii",targetid_prefix, number_prefix)) { SendClientMessage(playerid, COLOR_WHITE, "Ââåäèòå /addprefix [id] [id ïðåôèêñà]"); SendClientMessage(playerid, COLOR_WHITE, "0 - ÓÁÐÀÒÜ, 1 - Ñîçäàòåëü ïðîåêòà, 2 - Ðàçðàáîò÷èê ïðîåêòà, 3 - Ñêðèïòåð ïðîåêòà"); SendClientMessage(playerid, COLOR_WHITE, "4 - Ðóêîâîäèòåëü ïðîåêòà, 5 - Ñëåäÿùèé çà ãåòòî, 6 - Ñëåäÿùèé çà ãîñ.ñòðóêòóðàìè, 7 - Ñëåäÿùèé çà ìàôèÿìè"); SendClientMessage(playerid, COLOR_WHITE, "8 - Ñëåäÿùèé çà Ñàïïîðòàìè, 9 - Ñëåäÿùèé Ñàïïîðòàìè, 10 - Çàìåñòèòåëü îñíîâàòåëÿ, 11 - Ñïîíñîð ïðîåêòà"); return SendClientMessage(playerid, COLOR_WHITE, "12 - V.I.P. Àäìèíèñòðàòîð, 13 - Áåç íàçâàíèÿ, 14 - Áåç íàçâàíèÿ, 15 - Áåç íàçâàíèÿ"); } if(PlayerInfo[targetid_prefix][pAlcoInvenxua] <= 0) return SendClientMessage(playerid, COLOR_WHITE, "×åëîâåê íå àäìèíèñòðàòîð!"); if(number_prefix != 0) { PlayerInfo[targetid_prefix][prefix_id] = number_prefix; format(stringer1, sizeof(stringer1), "Ãëàâíûé àäìèíèñòðàòîð %s íàçíà÷èë àäìèíèñòðàòîðà %s íà äîëæíîñòü %s", PlayerInfo[playerid][pNames], PlayerInfo[targetid_prefix][pNames], pPrefixName[PlayerInfo[targetid_prefix][prefix_id]]); SendClientMessageToAll(COLOR_LIGHTRED, stringer1); } else { format(stringer1, sizeof(stringer1), "Ãëàâíûé àäìèíèñòðàòîð %s ñíÿë àäìèíèñòðàòîðà %s ñ äîëæíîñòè %s", PlayerInfo[playerid][pNames], PlayerInfo[targetid_prefix][pNames], pPrefixName[PlayerInfo[targetid_prefix][prefix_id]]); SendClientMessageToAll(COLOR_LIGHTRED, stringer1); PlayerInfo[targetid_prefix][prefix_id] = number_prefix; } } return 1; }
Share this post
Link to post