Raised This Month: $ Target: $400
 0% 

Save String Array


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
XSlayer
Member
Join Date: Dec 2021
Old 12-11-2021 , 19:09   Save String Array
Reply With Quote #1

Hi i was wondering how can i save a string for a specific player, i want to save the string when spawn and later load it in a condition ex:

Code:
////////////////////

new __int_String[32];

public fw_spawn( Client )
{
       get_user_name( Client, __int_String, charsmax(__int_String));

       set_task( 5.0, "LoadString", Client, _, _, "a", 1 );
}
public LoadString( Client )
{
       if(equal(__int_String, "XSlayer" ))
       {
              client_print( Client, print_chat, "XSlayer entered the game" );
       }
}


////////////////////
for a simple view the code is ok, but if other player enter the game after the 5 seconds, the string change, how can i save the string for personal client and then load it in a condition?
XSlayer is offline
 



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 -4. The time now is 11:36.


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