Why this feature doesnt work???
#1

I have a bot amde by me on server, but when i upload server on hosting with linux this part doesnt work:

pawn Код:
if(dini_Isset("ZASystem/BillyBot.sav",bottext2))
{
format(str,sizeof(str),"{00ff00}BillyBot: {ffffff}%s",dini_Get("ZAsystem/BillyBot.sav",bottext2));
SendClientMessageToAll(0x00FF00FF, str);
return 1;
}
On homehost it works fine and sends to chat message of bot written in a file,like: "Billybot: Hi!" but on hosting it just sends: "Billybot: "
Reply
#2

hmmm, do you all really so lazzy to suggest something?
Reply
#3

Try something like this:
pawn Код:
if(dini_Isset("ZASystem/BillyBot.sav",bottext2))
{
new BotMsg[160]; //Change 160 to whatever string size you require.
BotMsg = dini_Get("ZAsystem/BillyBot.sav",bottext2);
format(str,sizeof(str),"BillyBot: {ffffff}%s",BotMsg);
SendClientMessageToAll(0x00FF00FF, str);
return 1;
}
Not sure if that would completely work, but it would work better than having dini_Get(... in it's place.
Reply
#4

Quote:
Originally Posted by clarencecuzz
Посмотреть сообщение
Try something like this:
pawn Код:
if(dini_Isset("ZASystem/BillyBot.sav",bottext2))
{
new BotMsg[160]; //Change 160 to whatever string size you require.
BotMsg = dini_Get("ZAsystem/BillyBot.sav",bottext2);
format(str,sizeof(str),"BillyBot: {ffffff}%s",BotMsg);
SendClientMessageToAll(0x00FF00FF, str);
return 1;
}
Not sure if that would completely work, but it would work better than having dini_Get(... in it's place.
no, it still doesnt work on hosting and still works only at homehost. I think dini is not comparitible with linux servers
Reply
#5

lol it should. You sure you uploaded/created the right directories to your hosting server?
Reply
#6

Quote:
Originally Posted by clarencecuzz
Посмотреть сообщение
lol it should. You sure you uploaded/created the right directories to your hosting server?
yes i am completely shure!!!!! You see, dini_Isset works fine with this directory, but when we use dini_Get it gets empty string.
Reply
#7

maybe there is another way to do this without dini_get?
Reply
#8

Quote:
Originally Posted by pasha97
Посмотреть сообщение
hmmm, do you all really so lazzy to suggest something?
Yeah, because everyone is online 24/7 to answers your question within 30 minutes. Seriously, grow up.

On topic: Linux uses case sensitive file names. One letter off and it won't work.
Reply
#9

Quote:
Originally Posted by Vince
Посмотреть сообщение
Yeah, because everyone is online 24/7 to answers your question within 30 minutes. Seriously, grow up.

On topic: Linux uses case sensitive file names. One letter off and it won't work.
dude, understand, i need help! Im really confused because i wanted to sop working on server for this summer, but this bug makes me busy. And i know about case sensivity, and i use all leters right
Reply
#10

Can't you just put a bot message into your script rather than having it in a saved file?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)