ExPRO |
Дата: Суббота, 17.05.2014, 22:21 | Сообщение # 1
|
Боец
Сообщений: 181
Статус: Offline
|
Код if(strcmp(cmd, "/try", true) == 0) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_GREY, "Вы не вошли!"); if(PlayerInfo[playerid][pMuted] == 1) return SendClientMessage(playerid, COLOR_LIGHTRED, "В данный момент Вы не можете использовать это"); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; new chance = random(4); if(chance < 2) { if(!strlen(result)) return SendClientMessage(playerid, COLOR_GREY, "Используйте: /try [действие]"); format(string, sizeof(string), "%s %s {1CEF00}| Удачно", sendername, result); ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); format(string,sizeof(string), "%s {1CEF00}| Удачно", result); SetPlayerChatBubble(playerid,string,COLOR_PURPLE,30.0,10000); } else { if(!strlen(result)) return SendClientMessage(playerid, COLOR_GREY, "Используйте: /try [действие]"); format(string, sizeof(string), "%s %s {FF0000}| Неудачно", sendername, result); ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); format(string,sizeof(string), "%s {FF0000}| Неудачно", result); SetPlayerChatBubble(playerid,string,COLOR_PURPLE,30.0,10000); } return true; }
>>> My sa:mp server 176.32.39.43:7777 <<<
|
|
|
|
ackman31 |
Дата: Воскресенье, 23.11.2014, 21:44 | Сообщение # 2
|
Боец
Сообщений: 56
Статус: Offline
|
C:\Users\Ruslan\Desktop\pawn\Test\gamemodes\Test.pwn(1265) : error 017: undefined symbol "playerLogged" C:\Users\Ruslan\Desktop\pawn\Test\gamemodes\Test.pwn(1265) : warning 215: expression has no effect C:\Users\Ruslan\Desktop\pawn\Test\gamemodes\Test.pwn(1265) : error 001: expected token: ";", but found "]" C:\Users\Ruslan\Desktop\pawn\Test\gamemodes\Test.pwn(1265) : error 029: invalid expression, assumed zero C:\Users\Ruslan\Desktop\pawn\Test\gamemodes\Test.pwn(1265) : fatal error 107: too many error messages on one line
if(playerLogged[playerid] == 0) return SCM(playerid, COLOR_GREY, "Âû íå âîøëè!");
Создание фэйк-текста самому - http://cheat-master.ru/forum/146-532209-1
|
|
|
|