deathtaker26 Posted December 21, 2009 Author Share Posted December 21, 2009 i keep getting a scripting error on this case only```Sub ScriptedNPC(Index, Script) Select Case Script Case 0 call PlayerMsg (index, "Hello" & GetPlayerName &"How are you?", WHITE) Case Else Call PlayerMsg(Index, "No NPC script found. Please contact an admin to solve this problem.", WHITE) Exit Sub End SelectEnd Sub```this is a .ess file Link to comment Share on other sites More sharing options...
Admiral Refuge Posted December 21, 2009 Share Posted December 21, 2009 You're not passing the player's index into the "GetPlayerName" function.It should be:GetPlayerName(Index) Link to comment Share on other sites More sharing options...
Ruins of Hell Posted December 22, 2009 Share Posted December 22, 2009 Also, this would print:HelloBobHow are you?You want: Call PlayerMsg (index, "Hello " & GetPlayerName(index) &", how are you?", WHITE)Also, capitalize Call, it might not work otherwise (just a guess). Link to comment Share on other sites More sharing options...
deathtaker26 Posted December 22, 2009 Author Share Posted December 22, 2009 @[SB:> Soul link=topic=55630.msg588603#msg588603 date=1261443108]> Also, this would print:> > HelloBobHow are you?> > You want:> > Call PlayerMsg (index, "Hello " & GetPlayerName &", how are you?", WHITE)> > Also, capitalize Call, it might not work otherwise (just a guess).kk Link to comment Share on other sites More sharing options...
Lam3r Posted December 22, 2009 Share Posted December 22, 2009 Actually you want it to be:```Call PlayerMsg (Index, "Hello " & GetPlayerName(Index) & ", how are you?", WHITE)```Fixed the original error you had which Soul forgot to do in his last post ;P Link to comment Share on other sites More sharing options...
deathtaker26 Posted December 22, 2009 Author Share Posted December 22, 2009 @Lam3r:> Actually you want it to be:> ```> Call PlayerMsg (Index, "Hello " & GetPlayerName(Index) & ", how are you?", WHITE)> > ```> Fixed the original error you had which Soul forgot to do in his last post ;Plol yes you both helped me sheesh thank you both Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now