How do i set the value of a string to null
#1

I have variables which stores the name and ip of a player

Код:
PlayerInfo[playerid][PlayerName]
PlayerInfo[playerid][IP]
When a player connects, i store the playername and ip in those variables

How can i clear the variable onplayerdisconnect

Can i just do
Код:
PlayerInfo[playerid][PlayerName] = '\0'
PlayerInfo[playerid][IP] = '\0'
Thanks!
Reply


Messages In This Thread
How do i set the value of a string to null - by Xtreme Brotherz - 13.05.2014, 07:38
Re: How do i set the value of a string to null - by DaniceMcHarley - 13.05.2014, 07:42
Re: How do i set the value of a string to null - by Xtreme Brotherz - 13.05.2014, 07:43
Re: How do i set the value of a string to null - by DaniceMcHarley - 13.05.2014, 07:44

Forum Jump:


Users browsing this thread: 3 Guest(s)