Question regarding mSelection - 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: Question regarding mSelection (
/showthread.php?tid=605510)
Question regarding mSelection -
NeXoR - 20.04.2016
Heya there guys, Can I order mSelection to retrieve a list from a folder ? And not from the normal scriptfiles ?
I'll explain better
Current path is :
PHP код:
lspdlist = LoadModelSelectionMenu("lspdskins.txt");
skinlist = LoadModelSelectionMenu("skins.txt");
spawnskin = LoadModelSelectionMenu("skins.txt");
vehlist = LoadModelSelectionMenu("vehicles.txt");
fbilist = LoadModelSelectionMenu("fbiskins.txt");
govlist = LoadModelSelectionMenu("govskins.txt");
lsfmdlist = LoadModelSelectionMenu("lsfmdskins.txt");
Can I do it like this so it will get the files from listfiles folder inside Scriptfiles
PHP код:
lspdlist = LoadModelSelectionMenu("listfiles/lspdskins.txt");
skinlist = LoadModelSelectionMenu("listfiles/skins.txt");
spawnskin = LoadModelSelectionMenu("listfiles/skins.txt");
vehlist = LoadModelSelectionMenu("listfiles/vehicles.txt");
fbilist = LoadModelSelectionMenu("listfiles/fbiskins.txt");
govlist = LoadModelSelectionMenu("listfiles/govskins.txt");
lsfmdlist = LoadModelSelectionMenu("listfiles/lsfmdskins.txt");
I tried it this way, didn't work
Re: Question regarding mSelection -
Unte99 - 20.04.2016
Shouldn't it be \ and not / ?
Re: Question regarding mSelection -
NeXoR - 20.04.2016
Quote:
Originally Posted by Unte99
Shouldn't it be \ and not / ?
|
Good point tho
PHP код:
D:\samp037_svr_R2-1-1_win32\gamemodes\ALRP.pwn(5793) : error 027: invalid character constant
D:\samp037_svr_R2-1-1_win32\gamemodes\ALRP.pwn(5793) : error 027: invalid character constant
PHP код:
lspdlist = LoadModelSelectionMenu("mselection\lspdskins.txt");
Re: Question regarding mSelection -
J0sh... - 20.04.2016
/mselection/lspdskins.txt
This should work.
Re: Question regarding mSelection -
Unte99 - 20.04.2016
Quote:
Originally Posted by NeXoR
Good point tho
PHP код:
D:\samp037_svr_R2-1-1_win32\gamemodes\ALRP.pwn(5793) : error 027: invalid character constant
D:\samp037_svr_R2-1-1_win32\gamemodes\ALRP.pwn(5793) : error 027: invalid character constant
PHP код:
lspdlist = LoadModelSelectionMenu("mselection\lspdskins.txt");
|
Got confused a little after I checked the directory of a file in the file explorer. The file explorer uses \, but I guess \ in pawn is used for another purpose. / is the right usage.
Re: Question regarding mSelection -
NeXoR - 20.04.2016
Quote:
Originally Posted by Jamester
/mselection/lspdskins.txt
This should work.
|
Works perfect, Thank you