IceChat Forums

IceChat 5 Scripting => Scripting => Topic started by: j4ck on October 12, 2011, 12:20:12 AM

Title: Retrieving Ini File Data
Post by: j4ck on October 12, 2011, 12:20:12 AM
Heyy Guys!!!
i need help with a script of mine, what im trying to do is to retrieve some stuff from an ini file!
this is what i have so far:
Code: [Select]
Dim save, nothingness
save=getinifile("notes.ini",Nickname,nothingness, <something here>)
Sub ONTEXT(Message,Channel,Nickname,Host,ServerNumber)
If Left(lcase(Message),8)="*getsave" then
SendCommand "/msg " & NickName & " Save: " & save & "",ServerNumber
End If
End Sub

thats my code so far... what i would like is to be able to make it so when other people type *getsave it retrieves there save data and pastes it into a private msg! so i only want it so it sends them the last part (<something here>) and not the NickName or the nothingness part (even though it is nothing, i would like to know for the future).
also where the <something here> is where i made the kind of variable thingy that is controlled by the user, in short <something here > can be any thing and i would like to only send a msg to the nickname and only send the <something here> part!
Thanks In Advance!
Title: Re: Retrieving Ini File Data
Post by: Snerf on October 12, 2011, 05:00:00 PM
The save=getinifile() needs to be inside the If / End If block. Or it will always be the same.