public set_bartime(id, czas, startprogress=0)
{
message_begin((id)?MSG_ONE:MSG_ALL, get_user_msgid("BarTime2"), _, id)
write_short(czas);
write_short(startprogress);
message_end();
}
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Pasek ładowania na nozu
#1
Napisano 25.07.2012 14:33
#2
Napisano 26.07.2012 20:02
#3
Napisano 26.07.2012 20:11
public set_bartime(id, czas, startprogress=0)
{
if(user_has_weapon(id,CSW_KNIFE)
{
message_begin((id)?MSG_ONE:MSG_ALL, get_user_msgid("BarTime2"), _, id)
write_short(czas);
write_short(startprogress);
message_end();
}
}
albo w CurWeapon
public CurWeapon( id )
{
if( read_data(2) == CSW_KNIFE )
{
message_begin((id)?MSG_ONE:MSG_ALL, get_user_msgid("BarTime2"), _, id)
write_short(czas);
write_short(startprogress);
message_end();
}
}
Tą drugą powinno działać
Użytkownik glut1997 edytował ten post 26.07.2012 20:15
#4
Napisano 26.07.2012 20:16
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Error: Function argument may not have a default value (variable "startprogress") on line 17
Error: Expected token: ")", but found "{" on line 20
2 Errors.
Could not locate output file C:\Users\Metin2.Pl\Desktop\wh\noz.amx (compile failed). ale dostałeś
#5
Napisano 26.07.2012 20:22
public set_bartime(id, czas, startprogress=0)
{
if(user_has_weapon(id,CSW_KNIFE))
{
message_begin((id)?MSG_ONE:MSG_ALL, get_user_msgid("BarTime2"), _, id)
write_short(czas);
write_short(startprogress);
message_end();
}
}
a plusa nie dostałem i co kłamiesz ? Hehe
Użytkownik glut1997 edytował ten post 26.07.2012 20:23
#6
Napisano 26.07.2012 20:27
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team Error: Function argument may not have a default value (variable "startprogress") on line 17 1 Error. Could not locate output file C:\Users\Metin2.Pl\Desktop\wh\noz.amx (compile failed).
#7
Napisano 26.07.2012 20:30
stock set_bartime(id, czas, startprogress=0)
{
if(user_has_weapon(id,CSW_KNIFE))
{
message_begin((id)?MSG_ONE:MSG_ALL, get_user_msgid("BarTime2"), _, id)
write_short(czas);
write_short(startprogress);
message_end();
}
}
Nie przypatrzyłem się wcześniej
#8
Napisano 26.07.2012 20:35
#9
Napisano 26.07.2012 20:39
register_event("CurWeapon","CurWeapon","be", "1=1")
public CurWeapon( id )
{
if( read_data(2) == CSW_KNIFE )
{
message_begin((id)?MSG_ONE:MSG_ALL, get_user_msgid("BarTime2"), _, id)
write_short(czas);
write_short(startprogress);
message_end();
}
}
#10
Napisano 27.07.2012 11:37
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team Error: Undefined symbol "czas" on line 22 Error: Number of arguments does not match definition on line 22 Error: Undefined symbol "startprogress" on line 23 Error: Number of arguments does not match definition on line 23 4 Errors. Could not locate output file C:\Users\Metin2.Pl\Desktop\wh\noz.amx (compile failed).
#11
Gość_21977_*
Napisano 30.07.2012 09:09
Ten temat został zamknięty przez moderatora.
Powód: Autor tematu zbanowany
Jeśli się z tym nie zgadzasz,
raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.Z pozdrowieniami,
Zespół AMXX.PL
Użytkownicy przeglądający ten temat: 1
0 użytkowników, 1 gości, 0 anonimowych


Dodatki SourceMod



Temat jest zamknięty









