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


Messages In This Thread
How to set a variable to a string? - by DarkLouis - 21.05.2015, 12:45
Re: How to set a variable to a string? - by MikE1990 - 21.05.2015, 12:47
Re: How to set a variable to a string? - by DarkLouis - 21.05.2015, 12:48
Re: How to set a variable to a string? - by MikE1990 - 21.05.2015, 12:55

Forum Jump:


Users browsing this thread: 1 Guest(s)