Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
-
laimiukas3
- Moderatorius
- Posts: 4569
- Joined: 2012 Aug 03 01:12
- Skype: laimiukas3
- Location: Vilnius
-
Contact:
Post
by laimiukas3 »
kas cia ne taip ?:) noriu pridet admin vip prefixus
//AMXXPC compile.exe
// by the AMX Mod X Dev Team
//// som-shit.sma.sma
//
// C:\Users\Laimis\Desktop\scripting\som-shit.sma(714) : error 036: emp
ty statement
// C:\Users\Laimis\Desktop\scripting\som-shit.sma(715) : warning 217: l
oose indentation
// C:\Users\Laimis\Desktop\scripting\som-shit.sma(717) : error 036: emp
ty statement
//
// 2 Errors.
// Could not locate output file C:\Users\Laimis\Desktop\scripting\compiled\som-shit.amx (compile failed).
//
// Compilation Time: 1,83 sec
// ----------------------------------------
Press enter to exit ...
Code: Select all
if( is_team_msg ) { if( is_sndr_spec ) prefix = "^x01(Spectator) "; else if( sndr_team == 1 ) add( prefix[strlen(prefix)-1], 29, "^x01(Terrorist) " ); else if( sndr_team == 2 ) add( prefix[strlen(prefix)-1], 29, "^x01(Counter-Terrorist) " ); else if(get_user_flags(sndr) & ADMIN_IMMUNITY); // 714 else if( sndr_team == 2 ) add( prefix[strlen(prefix)-1], 29, "^x01(Counter-Terrorist) ^x04[ADMIN]" ); else if( sndr_team == 1 ) add( prefix[strlen(prefix)-1], 29, "^x01(Terrorist) ^x04[ADMIN]" ); else if(get_user_flags(sndr) & ADMIN_RESERVATION); //717 else if( sndr_team == 2 ) add( prefix[strlen(prefix)-1], 29, "^x01(Counter-Terrorist) ^x04[VIP]" ); else if( sndr_team == 1 ) add( prefix[strlen(prefix)-1], 29, "^x01(Terrorist) ^x04[VIP]" ); } format( msg, 512, "%s%s%s : %s%s", strlen( prefix ) > 1 ? prefix : "", COLCHAR[namecol], sndr_name, COLCHAR[msgcol], str4 ); return PLUGIN_HANDLED;}
-
DYaGesS
- Flooderis arba specialistas
- Posts: 875
- Joined: 2013 Jan 16 01:01
- Skype: usercs.com
-
Contact:
Post
by DYaGesS »
Code: Select all
if( is_team_msg ) { if( is_sndr_spec ) prefix = "^x01(Spectator) "; else if( sndr_team == 1 ) add( prefix[strlen(prefix)-1], 29, "^x01(Terrorist) " ); else if( sndr_team == 2 ) add( prefix[strlen(prefix)-1], 29, "^x01(Counter-Terrorist) " ); else if(get_user_flags(sndr) & ADMIN_IMMUNITY){ else if( sndr_team == 2 ) add( prefix[strlen(prefix)-1], 29, "^x01(Counter-Terrorist) ^x04[ADMIN]" ); else if( sndr_team == 1 ) add( prefix[strlen(prefix)-1], 29, "^x01(Terrorist) ^x04[ADMIN]" ); } else if(get_user_flags(sndr) & ADMIN_RESERVATION){ else if( sndr_team == 2 ) add( prefix[strlen(prefix)-1], 29, "^x01(Counter-Terrorist) ^x04[VIP]" ); else if( sndr_team == 1 ) add( prefix[strlen(prefix)-1], 29, "^x01(Terrorist) ^x04[VIP]" ); } format( msg, 512, "%s%s%s : %s%s", strlen( prefix ) > 1 ? prefix : "", COLCHAR[namecol], sndr_name, COLCHAR[msgcol], str4 ); return PLUGIN_HANDLED;}
; ne vietoj šiek tiek naudoji, o tą 715, dėl kreivo lygiavimo. Žodžiu su tab susilygiuok tvarkingai kaip priklauso ir visas gerai turėtų būt.
Padėjau? +rep
-
horde
- Ar jis surinks 50 žinučių?
- Posts: 37
- Joined: 2017 Feb 28 11:49
Post
by horde »
Pagal mane taip turėtų būti:
Code: Select all
if( is_team_msg ) { if(get_user_flags(sndr) & ADMIN_IMMUNITY) { if( sndr_team == 2 ) { add( prefix[strlen(prefix)-1], 29, "^x01(Counter-Terrorist) ^x04[ADMIN]" ); } else if( sndr_team == 1 ) { add( prefix[strlen(prefix)-1], 29, "^x01(Terrorist) ^x04[ADMIN]" ); } else if( is_sndr_spec ) { add( prefix[strlen(prefix)-1], 29, "^x01(Spectator) ^x04[ADMIN]" ); } } else if(get_user_flags(sndr) & ADMIN_RESERVATION) { else if( sndr_team == 2 ) { add( prefix[strlen(prefix)-1], 29, "^x01(Counter-Terrorist) ^x04[VIP]" ); } else if( sndr_team == 1 ) { add( prefix[strlen(prefix)-1], 29, "^x01(Terrorist) ^x04[VIP]" ); } else if( is_sndr_spec ) { add( prefix[strlen(prefix)-1], 29, "^x01(Spectator) ^x04[ADMIN]" ); } } else if( is_sndr_spec ) { prefix = "^x01(Spectator) "; } else if( sndr_team == 1 ) { add( prefix[strlen(prefix)-1], 29, "^x01(Terrorist) " ); } else if( sndr_team == 2 ) { add( prefix[strlen(prefix)-1], 29, "^x01(Counter-Terrorist) " ); } format( msg, 512, "%s%s%s : %s%s", strlen( prefix ) > 1 ? prefix : "", COLCHAR[namecol], sndr_name, COLCHAR[msgcol], str4 ); return PLUGIN_HANDLED;}
Ark'xes // firefly.lt
Users browsing this forum: No registered users and 6 guests