Fail attempt at scripting - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Fail attempt at scripting (
/showthread.php?tid=198412)
Fail attempt at scripting -
Darklom - 12.12.2010
Well I attempted to script this from scratch but the #1, the dialog won't show, #2 when you press spawn it says "Stay within the world boundaries"
The script is just an entire fuckup, if someone could re-post this with a fixed version I'd appreciate it, also explaining where I did wrong I'll add you in my credits
Do understand this is my FIRST ever attempt at scripting
Fixed-
Re: Fail attempt at scripting -
Hal - 12.12.2010
In the script you probably have world boundaries set, and you forgot to take them out/change them. The coords you give may also be wrong, so you may want to just make them a default location like LS, just for debugging purposes.
Re: Fail attempt at scripting -
Basicz - 12.12.2010
#1.
You defined the dialog ID 2003.
#2.
I don't see you added the AddPlayerClass script in OnGameModeInit.
Re: Fail attempt at scripting -
Darklom - 12.12.2010
Quote:
Originally Posted by Basicz
#1.
You defined the dialog ID 2003.
// OnDialogResponse
You may get loose indentation warning and symbol is never used gTeam.
Ignore them.
|
Thanks a lot, now it works fine I'll be doing some updates on it, but otherwise yeah I made some stupid mistakes XD
Also if you can remove the script from your post that'd be nice so I can do a release without anyone copying the same.
Thanks in advance!
Re: Fail attempt at scripting -
Basicz - 12.12.2010
Quote:
Originally Posted by Darklom
Also if you can remove the script
|
Okay, I'll remove that ASAP.