|
|
#1 |
|
Guest
Posts: n/a
|
Code:
if(IsValidText("Hi there")) return SendClientMessage(playerid, 0xFF0000FF, "Valid Text"); // Correct
if(IsValidText(":> Hello There")) return SendClientMessage(playerid, 0xFF0000FF, "Invailid Text"); // Correct
if(IsValidText("Hello :> There")) return SendClientMessage(playerid, 0xFF0000FF, "Vailid Text"); // Wrong
pawn Code:
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2009
Location: Germany
Posts: 1,147
Reputation: 48
|
for(new i = 0; i < sizeof(text); i++)
however I guess that's not the actual problem |
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2007
Posts: 3,472
Reputation: 226
|
pawn Code:
|
|
|
|
|
#4 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2009
Location: Germany
Posts: 1,147
Reputation: 48
|
won't that be an endless loop?
|
|
|
|
|
#5 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2007
Location: Belgium
Posts: 4,886
Reputation: 1418
|
pawn Code:
|
|
|
|
|
#6 |
|
Guest
Posts: n/a
|
pawn Code:
if i change pawn Code:
pawn Code:
|
|
|
#7 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2007
Location: Belgium
Posts: 4,886
Reputation: 1418
|
Sorry, this one should work. Tested it.
pawn Code:
|
|
|
|
|
#8 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2007
Posts: 3,472
Reputation: 226
|
No, it will stop when reached to the end of the string.
Doing pawn Code:
pawn Code:
pawn Code:
pawn Code:
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Function just stops other function | Blay09 | Help Archive | 2 | 01/01/2011 12:26 PM |
| function not working after another function | [HLF]Southclaw | Help Archive | 5 | 03/05/2010 05:45 PM |
| Any function? | deather | Help Archive | 1 | 14/03/2010 04:45 PM |
| [DUV]Function | m0ta | Português/Portuguese | 2 | 06/01/2010 05:41 PM |
| C++ Function | Danut | Help Archive | 5 | 19/04/2009 03:34 PM |