View Single Post
  #2  
Old 02-11-2006, 04:43 AM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
I have used setstring for at least five years, and in the wiki, my code example above is how setstring should be formatted - as far as i can tell.

Perhaps I should go a step back to algorithm-speak, and if you don't want me using setstring, then you can tell me another way/method to do it in gs2.

NPC Code:

if (a player logs out)
{
if (the value of the player account is not null)
{
tell the rc that the player that just logged out, has in fact logged out
bump the values of the server message that each player will see on screen so that the logins and logouts are sent to everyone
with the last string, set the string to be read by the player's npcin a timeout loop to be updated with the account and nickname of the player that just logged out.
}
}



so i ask again, why does the information get sent to the rc but not set into the string?

Also, NL is not working in sendpm as it should:

sendpm("test"@ NL @"123"); //causes an error: unexpected token: )
sendpm("test NL 123"); //shows the text NL in the string
sendpm("test "@"NL"@" 123"); //shows the text NL in the string

and i am out ot ideas of how else to use NL. help?

Last edited by Prozac; 02-11-2006 at 06:05 AM..
Reply With Quote