Hello again, sorry for spamming, but I've got a problem while running my server with libcod
PHP Code:
#!/bin/bash
sv_maxclients="24"
fs_game="sdpammode"
fs_homepath="/root/cod2"
cod="/root/cod2/cod2_lnxded"
com_hunkMegs="256"
config="server.cfg"
cracked="1"
net_port="28960"
args=\
"+set fs_homepath \"$fs_homepath\" "\
"+set sv_cracked $cracked "\
"+set fs_game $fs_game "\
"+set net_port $net_port "\
"+set com_hunkMegs $com_hunkMegs "\
"+set sv_maxclients $sv_maxclients "\
"+set fs_basepath \"$fs_homepath\" "\
"+exec $config"
LD_PRELOAD="/root/libcod/bin/libcod2_1_3.so" $cod $args +set g_gametype sd +map mp_toujane
I've saved that as a .sh file and added it to " /root "
so, after I try to run it, an error appears
Code:
./server.sh: line 2: $'\r': command not found
./server.sh: line 11: $'\r': command not found
./server.sh: line 12: $'\r': command not found
: No such file or directoryfs_homepath "/root/cod2
./server.sh: line 15: $'+set sv_cracked 1\r \r': command not found
./server.sh: line 16: $'+set fs_game sd_polat_bigjump\r \r': command not found
./server.sh: line 17: $'+set net_port 28960\r \r': command not found
./server.sh: line 18: $'+set com_hunkMegs 256\r \r': command not found
./server.sh: line 19: $'+set sv_maxclients 24\r \r': command not found
: No such file or directoryfs_basepath "/root/cod2
./server.sh: line 21: $'+exec 1qaz.cfg\r\r': command not found
./server.sh: line 22: $'\r': command not found
: No such file or directory/cod2/cod2_lnxded
Please, help me to solve this problem! I need libcod for my server