SA-MP Forums Archive
Menu isn't responding - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Menu isn't responding (/showthread.php?tid=577143)



Menu isn't responding - Dartan - 09.06.2015

Hi. I'm trying to find out why car spawners don't work on my server.
http://gfycat.com/RingedCarefulDragonfly
I tried to use different car spawners but its the same problem
Edit: I also tried other filterscripts with OnDialogResponse (for example: Neon System) and i still have the same problem.

I'm using the latest version of SA-MP-
Any help would be appreciated
Thanks.


Re: Menu isn't responding - Huba - 09.06.2015

OnDialogResponse, let's show it.

return 0 in the end?


Re: Menu isn't responding - Dartan - 09.06.2015

Quote:
Originally Posted by Huba
Посмотреть сообщение
OnDialogResponse, let's show it.

return 0 in the end?
I changed return 1 to return 0 but it still doesn't work.


Re: Menu isn't responding - Scottylad - 09.06.2015

You're mean't to have it as a true enum, so return true; = return 1;
Show me your code and I'll have a look bud .


Re: Menu isn't responding - Dartan - 09.06.2015

Quote:
Originally Posted by Scottylad
Посмотреть сообщение
You're mean't to have it as a true enum, so return true; = return 1;
Show me your code and I'll have a look bud .
http://pastebin.com/mpBSu2G7
This .pwn file isn't mine but it still happens with other car spawners or neon systems.
I think it might be something with the server? Maybe i'm missing a script or maybe something is turn off?


Re: Menu isn't responding - fuckingcruse - 09.06.2015

Change at every section news value like
new allvehicles[ ]
new allvehicles1[ ]
And so one..


Re: Menu isn't responding - Dartan - 09.06.2015

Quote:
Originally Posted by fuckingcruse
Посмотреть сообщение
Change at every section news value like
new allvehicles[ ]
new allvehicles1[ ]
And so one..
I'm not sure if i did it right but i got those errors.

Код:
cm.pwn(33) : error 017: undefined symbol "allvehicles"
cm.pwn(32) : warning 204: symbol is assigned a value that is never used: "allvehicles1"
cm.pwn(49) : error 017: undefined symbol "allvehicles"
cm.pwn(48) : warning 204: symbol is assigned a value that is never used: "allvehicles1"
cm.pwn(54) : error 017: undefined symbol "allvehicles"
cm.pwn(53) : warning 204: symbol is assigned a value that is never used: "allvehicles1"
cm.pwn(59) : error 017: undefined symbol "allvehicles"
cm.pwn(58) : warning 204: symbol is assigned a value that is never used: "allvehicles1"
cm.pwn(64) : error 017: undefined symbol "allvehicles"
cm.pwn(63) : warning 204: symbol is assigned a value that is never used: "allvehicles1"
cm.pwn(69) : error 017: undefined symbol "allvehicles"
cm.pwn(68) : warning 204: symbol is assigned a value that is never used: "allvehicles1"
cm.pwn(74) : error 017: undefined symbol "allvehicles"
cm.pwn(73) : warning 204: symbol is assigned a value that is never used: "allvehicles1"
cm.pwn(79) : error 017: undefined symbol "allvehicles"
cm.pwn(78) : warning 204: symbol is assigned a value that is never used: "allvehicles1"
cm.pwn(84) : error 017: undefined symbol "allvehicles"
cm.pwn(83) : warning 204: symbol is assigned a value that is never used: "allvehicles1"
cm.pwn(89) : error 017: undefined symbol "allvehicles"
cm.pwn(88) : warning 204: symbol is assigned a value that is never used: "allvehicles1"
cm.pwn(94) : error 017: undefined symbol "allvehicles"
cm.pwn(93) : warning 204: symbol is assigned a value that is never used: "allvehicles1"
cm.pwn(99) : error 017: undefined symbol "allvehicles"
cm.pwn(98) : warning 204: symbol is assigned a value that is never used: "allvehicles1"
cm.pwn(104) : error 017: undefined symbol "allvehicles"
cm.pwn(103) : warning 204: symbol is assigned a value that is never used: "allvehicles1"
cm.pwn(109) : error 017: undefined symbol "allvehicles"
cm.pwn(108) : warning 204: symbol is assigned a value that is never used: "allvehicles1"
cm.pwn(114) : error 017: undefined symbol "allvehicles"
cm.pwn(113) : warning 204: symbol is assigned a value that is never used: "allvehicles1"
cm.pwn(119) : error 017: undefined symbol "allvehicles"
cm.pwn(118) : warning 204: symbol is assigned a value that is never used: "allvehicles1"



Re: Menu isn't responding - Konstantinos - 09.06.2015

It is somewhat correct, though return 0 at the end of the callback and return 1 in the dialogs above (after showing another dialog or creating the vehicle and putting the player in it) so it will not pass the dialogid to another script if it has already been found.

First of all, use different dialog IDs as they may confict with other dialogs.
Last, check all the other scripts that return 0 (is a must) at the end of OnDialogResponse callback otherwise it won't be called in that current script at all.

Quote:
Originally Posted by fuckingcruse
Посмотреть сообщение
Change at every section news value like
new allvehicles[ ]
new allvehicles1[ ]
And so one..
It doesn't need a value if you directly assign the string with it.


Re: Menu isn't responding - Huba - 11.06.2015

Repaired:

http://pastebin.com/6m9FZSGM

Works for me.