Problem z kompilacją pluginu
Coldziu
07.02.2017
Witam, mam problem ze skompilowaniem pluginu i nie bardzo się na tym znam. Czy ktoś mi może powiedzieć co jest grane z tym plikiem ?
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2013 ITB CompuPhase, AMX Mod X Team
jail_team.sma(13) : error 020: invalid symbol name ""
jail_team.sma(29) : error 017: undefined symbol "pCvarTiem"
jail_team.sma(30) : error 017: undefined symbol "pCvarCtToTT"
jail_team.sma(31) : error 017: undefined symbol "pCvarSteam"
jail_team.sma(33) : error 017: undefined symbol "pCvarCtToTT"
jail_team.sma(33) : error 017: undefined symbol "pCvarCtToTT"
jail_team.sma(33) : error 001: expected token: ",", but found ";"
jail_team.sma(33) : fatal error 107: too many error messages on one line
Compilation aborted.
8 Errors.
Attached Files
Coldziu
07.02.2017
Dziękuję za bardzo szybką odpowiedź, lecz teraz jest inny error:
//// jail_team.sma
// C:\Users\Komp\Desktop\compiler\jail_team.sma(1) : error 010: invalid function or declaration
//
// 1 Error.
// Could not locate output file compiled\jail_team.amx (compile failed).
Coldziu
07.02.2017
Miałbym jeszcze jedno pytanie: Jaki plugin odpowiada za wybór teamu na początku rundy ? Jest to serwer jailbreak, i muszę zmienić w tym pluginie kilka rzeczy.
Robiin
07.02.2017
GdzieDojsc(id, team) { set_pdata_int(id, 125, get_pdata_int(id, 125) & ~(1<<8)); if(team == 6) { if(!is_user_alive(id)) { gTeam[id] = 0; engclient_cmd(id, "jointeam", "6"); } else client_print(id, print_center, "Nie mozesz byc obserwatorem"); return; } if(gTeam[id] == team) return; new ile_graczy[2]; for(new i=1; i<=32; i++) { if(!is_user_connected(i)) continue; switch(cs_get_user_team(i)) { case 1: ile_graczy[0]++; case 2: ile_graczy[1]++; } } if(czas_bronie && jail_day%7 && !gTeam[id] && ((team == 1 && ile_graczy[0]) || (team == 2 && ile_graczy[1]))) { ColorChat(id, GREEN, "[PrisonBreak]^x01 Mozesz dolaczyc dopiero jak sie skonczy runda!"); GdzieDojsc(id, 6); return; } new iRet; ExecuteForward(fJoinTeam, iRet, id, team, ile_graczy[0], ile_graczy[1]); switch(iRet) { case -1: return; case 1,2: team = iRet; } if(gTeam[id] == team) return; new msg_blocke = get_msg_block(g_msgid[id]); set_msg_block(g_msgid[id], BLOCK_SET); engclient_cmd(id, "jointeam", team==2? "2": "1"); //set_msg_block(g_msgid[id], msg_blocke); //set_msg_block(g_msgid[id], BLOCK_SET); engclient_cmd(id, "joinclass", "1"); set_msg_block(g_msgid[id], msg_blocke); gTeam[id] = team; }
jail_api_jailbreak.amxx
https://amxx.pl/topi...s-aktualizacja/