How to set a variable to a string?
#1

PHP код:

#define MAX_P 50
enum pi
{
    
string[MAX_P][30],
};
new 
PlayerInfo[MAX_PLAYERS][pi];
public 
OnPlayerConnect(playerid)
{
    new 
MAX_P 1;
    for(new 
0MAX_PLAYERSi++)
    {
        
SendClientMessage(i, -1PlayerInfo[playerid][string[p]]);
    }
    return 
1;

It is ONLY an example. Who can help me?
Reply
#2

Check https://sampwiki.blast.hk/wiki/Format
Reply
#3

The problem is

PHP код:
enum pi 

    
string[MAX_P][30], 
}; 
new 
PlayerInfo[MAX_PLAYERS][pi]; 
I want to assign at a string in an enum, another value.
Reply
#4

If you want to assing for example value 5 you need to format it.I don't know for another way
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)