How to set string to an array without assigning in to an array?
#8

Quote:
Originally Posted by StreetRP
View Post
So :
PHP Code:
stock GetStatu(playerid//Is a stock

    static 
    
str[24]; 
    switch (
PlayerInfo[playerid][pStatus])  //Is switch , he detecte if PlayerInfo[playerid][pStatus] == 0 or 1
    

        case 
0str "Offline"
        case 
1str "Online"
    } 
    return 
str

To use it ,is simple
PHP Code:
GetStatu(playerid); 
https://sampforum.blast.hk/showthread.php?tid=570635
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)