Question regarding mSelection
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
Shouldn't it be \ and not / ?
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");  ```
/mselection/lspdskins.txt

This should work.
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.
Quote:
 Originally Posted by Jamester /mselection/lspdskins.txt This should work.
Works perfect, Thank you

Forum Jump:

Users browsing this thread: 1 Guest(s)