Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Tokenizing Problems. (https://forums.graalonline.com/forums/showthread.php?t=82472)

Ronnie 10-24-2008 12:09 AM

Tokenizing Problems.
 
PHP Code:

case "editplayer1":
guildfind params[1];
guildfound.loadlines("levels/guilds/guild"@guildfind@".txt");
pl.params[2];
 for(
temp.guildfound){
 
temp.vals temp.a.tokenize(":"); 
  if(
temp.vals[0] == pl.a){
  
//Where the help is needed!
  

 }  
break; 

SO basically if i'm tokenizing a line that was loaded into two parts and I have the script check if the name before the semicolon is the players account how would I find out the name after the semicolon?

Please and thank you.
-Ronnie

napo_p2p 10-24-2008 12:40 AM

The way you have it set up, temp.vals[1] should hold the players nick name.

Ronnie 10-24-2008 12:57 AM

temp.vals[1] when echos returns all of the players nicks; just not a single one like i'm trying for.

Skyld 10-31-2008 02:24 PM

Undeleted for reference.


All times are GMT +2. The time now is 10:36 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.