Przykład:
[...]
show_hudmessage(id, "Zwrocony tekst: %s", oddajtxt(id));
[...]
public oddajtxt(id)
{
new name[32];
get_user_name(pid, name, 31);
return name;
}
Oczywiście przykład nie działa tak jak powinien.
Edited by diggs, 31.10.2011 19:02.
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.
|
Posted 31.10.2011 18:59
Edited by diggs, 31.10.2011 19:02.
cFun.pl BaseBuilderPro v6.5.8 Tirant edit by diggs
IP: 80.82.16.66:27034
cFun.pl Only AWP - 1000 FPS [SkinsMod]
IP: 80.72.42.113:27015
Posted 31.10.2011 19:10
public oddajtxt(id)
{
new name[32];
get_user_name(id, name, 31);
return name;
}
Posiadam TBM (inaczej PTB), które działa dużo lepiej niż zwykłe PTB, nawet na modach z lvlami. Zainteresowany? Proszę bardzo
Posted 31.10.2011 19:15
cFun.pl BaseBuilderPro v6.5.8 Tirant edit by diggs
IP: 80.82.16.66:27034
cFun.pl Only AWP - 1000 FPS [SkinsMod]
IP: 80.72.42.113:27015
Posted 31.10.2011 19:36
Edited by Vertricus, 31.10.2011 19:42.
Posted 31.10.2011 19:41
cFun.pl BaseBuilderPro v6.5.8 Tirant edit by diggs
IP: 80.82.16.66:27034
cFun.pl Only AWP - 1000 FPS [SkinsMod]
IP: 80.72.42.113:27015
Posted 31.10.2011 20:21
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); new szNick[32]; szNick = getText(); log_amx("No siema %s", szNick); } getText() { new szText[] = "ziom"; return szText; }
getText(szText[], len) { return copy(szText, len, "ziom"); }
Posted 31.10.2011 21:03
new szNick[32]; getText(szNick, 31); log_amx( "No siema %s", szNick);
Posted 31.10.2011 21:17
return "tekst";kompilator się na tym wywali
Posted 31.10.2011 21:20
Posted 31.10.2011 21:27
public native_get_text(id, szText[], len) { new text[64]; ArrayGetString(g_Text, num[id], text, 63); return copy(szText, len, text); } [...] new szcos[64]; diggs_get_text(id, class_name, 64); show_hudmessage(id, "Tekst: %s", szcos); [...]Efektem tego jest napis "Tekst:"
Edited by diggs, 31.10.2011 21:28.
cFun.pl BaseBuilderPro v6.5.8 Tirant edit by diggs
IP: 80.82.16.66:27034
cFun.pl Only AWP - 1000 FPS [SkinsMod]
IP: 80.72.42.113:27015
Posted 31.10.2011 21:31
Posted 01.11.2011 07:35
Edited by diggs, 01.11.2011 07:35.
cFun.pl BaseBuilderPro v6.5.8 Tirant edit by diggs
IP: 80.82.16.66:27034
cFun.pl Only AWP - 1000 FPS [SkinsMod]
IP: 80.72.42.113:27015
Posted 01.11.2011 10:00
0 members, 1 guests, 0 anonymous users