Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 04-10-2013, 05:30 PM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
I was messing with it originally, and player.chat only outputs the first entry, but echo() outputs all of them. Then the first time I stored it to a variable using
PHP Code:
for ( temp.players 
temp.i would return null, so it seems a little sketchy at some times, but after updating the weapon again it seemed to have fixed itself (lag?).
Reply With Quote
  #17  
Old 04-10-2013, 07:19 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by devilsknite1 View Post
I was messing with it originally, and player.chat only outputs the first entry, but echo() outputs all of them. Then the first time I stored it to a variable using
PHP Code:
for ( temp.players 
temp.i would return null, so it seems a little sketchy at some times, but after updating the weapon again it seemed to have fixed itself (lag?).
Because when you use player.chat it replaces each instance with the next, so you're only seeing one value.

Doing something like: player.chat @= temp.i; will be a lot different. Stick to using echo four outputting loop data though.
Reply With Quote
  #18  
Old 04-11-2013, 03:41 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Normally the players[] array should be fine on client-side, displaying all players of the 3x3 map area (on iphone servers: all visible players)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:08 PM.


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