Reset/Erase a global string
#1

Hy

How can i reset a global string, e.g from GodFather mod > PlayerInfo[playerid][pKey]?
Because if the user dont registered, its not reset, and need a pass to login.

I think i can reset by format, but other ways ?

Thanx
Reply
#2

if its only direclty used as a string with string functions you can do
pawn Код:
PlayerInfo[playerid][pKey][0] = EOS;
// EOS = End of string = '\0'
Reply
#3

Thanx, its works
Reply
#4

One question... Will that totally delete the string or will it just set an empty value?
Reply
#5

Set it on an empty value
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)