Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: ondialogresponse
1. OnDialogResponse
Witam, mam taki kod:
[quote] if(dialogid == 987) //2, bo taka jest warto?? w drugim argumencie funkcji ShowPlayerDialog
{
if(response == 1) //Sprawdzamy, czy zosta? naci?ni?ty lewy przycisk
{
switch(listitem) //Switch'ujemy listitem (mo?emy robi? tez if'y, ale to jest szybsze i ?atwiejsze
{
case 0: //Je?li warto?? to 0...
{
if(PlayerInfo[playerid][pPortfel] >= 1)
{
SendClientMessage(playerid, -1, "{00FF00}Kupiles range VIP na 1 dzien!"); //Wysy?amy wiadomo??
PlayerInfo[playerid][pPortfel] - 1;
}
else
{
SendClientMessage(playerid, -1, "{FF0000}Nie masz tyle Punktow w Portfelu!");
}
}
case 1: //Je?li warto?? to 1...
{
if(PlayerInfo[playerid][pPortfel] >= 3)
{
SendClientMessage(playerid, -1, "{00FF00}Kupiles range VIP na 3 dni!"); //Wysy?amy wiadomo??
PlayerInfo[playerid][pPortfel] - 3;
}
else
{
SendClientMessage(playerid, -1, "{FF0000}Nie masz tyle Punktow w Portfelu!");
}
}
case 2: //Je?li warto?? to 2...
{
if(PlayerInfo[playerid][pPortfel] >= 7)
{
SendClientMessage(playerid, -1, "{00FF00}Kupiles range VIP na 7 dni!"); //Wysy?amy wiadomo??
PlayerInfo[playerid][pPortfel] - 7;
}
else
{
SendClientMessage(playerid, -1, "{FF0000}Nie masz tyle Punktow w Portfelu!");
}
}
case 3: //Je?li warto?? to 2...
{
if(PlayerInfo[playerid][pPortfel] >= 14)
{
SendClientMessage(playerid, -1, "{00FF00}Kupiles range VI...
2. [INNE] OnDialogResponse
Witam, mam pytanie siedzia?em sobie na serwie z kolegami i nagle restart o to logi [code][14:03:25] [debug] Server crashed while executing truck.amx
[14:03:25] [debug] AMX backtrace:
[14:03:25] [debug] #0 0002589c in public OnDialogResponse () from truck.amx
[14:03:25] [debug] Native backtrace:
[14:03:25] [debug] #0 f74e34ad in crashdetect::PrintNativeBacktrace () from plugins/crashdetect.so
[14:03:25] [debug] #1 f74e5bbc in crashdetect::Crash () from plugins/crashdetect.so
[14:03:25] [debug] #2 f74ead4e in ?? () from plugins/crashdetect.so
[14:03:25] [debug] #3 f77ba400 in ?? ()
[14:03:25] [debug] #4 f74ecdb6 in amx_Exec () from plugins/crashdetect.so
[14:03:25] [debug] #5 f74e2b2b in crashdetect::HandleAmxExec () from plugins/crashdetect.so
[14:03:25] [debug] #6 f74e9b6e in ?? () from plugins/crashdetect.so
[14:03:25] [debug] #7 0807048f in ?? () from /home/samp03/samp03svr
[14:03:25] [debug] #8 080807cb in ?? () from /home/samp03/samp03svr
[14:03:25] [debug] #9 080ab671 in ?? () from /home/samp03/samp03svr
[14:03:25] [debug] #10 080ab762 in ?? () from /home/samp03/samp03svr
[14:03:25] [debug] #11 080b53f0 in ?? () from /home/samp03/samp03svr
[14:03:25] [debug] #12 0807cd46 in ?? () from /home/samp03/samp03svr
[14:03:25] [debug] #13 0807cf72 in ?? () from /home/samp03/samp03svr
[14:03:25] [debug] #14 08077233 in ?? () from /home/samp03/samp03svr
[14:03:25] [debug] #15 f750fbd6 in __libc_start_main () from /lib32/libc.so.6
[14:03:25] [debug] #1...