![]() |
Err help?
Umm I was trying to scrip something that counts how many letters in your text you say, there are. This is kinda simple but it only works 1 time. And when I added a timeout it oviously didn't help. It's werid. I probally overlooked something but here ya go:
NPC Code:// NPC made by Rob Getashu Thanks |
and you have two ;'s after the line of code Kai just questioned.. won't really harm the script I think, but its pointless none the less (you only need one) x.x
[edit]theres another big problem in it, but I think i'll let you figure that out yourself.. hint: you're using if (created) to check the length of the players chat text[/edit] |
Yea, but Kai, when I took out the (#v) it didn't work anymore. But when I leave it in, the string always stays 1? Maybe I was using the wrong command to read the number of letters?
|
Quote:
|
Quote:
|
Quote:
Well there it is. You've got it. Now tell us, what event happens when a player chats? what function checks the length of the string? what is the string for the players current chat text? how do you save a string? how do you print out a string? And in that order. |
Quote:
|
Quote:
|
Quote:
|
Quote:
All of the answers to those questions are in the script posted already. But things are a bit out of order in it. >.< Maybe he's just not used to the way graal does things. |
Quote:
NPC Code: |
Quote:
|
Why did my post get deleted?
|
Quote:
|
| All times are GMT +2. The time now is 05:56 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.