AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Vars (https://forums.alliedmods.net/showthread.php?t=95306)

ProIcons 06-22-2009 08:30

Vars
 
if (Player2[0] == IPz[0])
{

from Player2[0] we take the first later of the value... how can i take all the word?

Bugsy 06-22-2009 08:59

Re: Vars
 
Quote:

Originally Posted by ProIcons (Post 854133)
if (Player2[0] == IPz[0])
{

from Player2[0] we take the first later of the value... how can i take all the word?

Do not specify a subscript. Just use the string variable.

However, you cannot compare strings with the '==' operator. You must use if ( equal( string1 , string 2 ) ) when comparing entire strings. Also look at functions strlen, equali, contain, containi.


All times are GMT -4. The time now is 15:38.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.