Just a simple question
#9

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
PHP код:
enum fInfo
{
    
FacName[50],
    
FacOwner[20],
    
FacLevels,
    
FacRanks,
    
FacSlots[10//im not sure about this variable
}; 
PHP код:
new fact[100][fInfo];
stock NewFaction(nam[],ownername[],levels,ranks)
{
    new 
currentfaction+1;
    
format(fact[i][FacName],50,"%s"nam);
    
format(fact[i][FacOwner],20,"%s"ownername);
    
fact[i][FacLevels] = levels;
    
fact[i][FacRanks] = ranks;
}
CMD:createfac(playerid,params[])
{
    new 
name[50],owner[20],level,rank;
    if (
sscanf(params"ssii"nameowner,level,rank)) return SendClientMessage(playerid0xFF0000AA"Error")
    
NewFaction(name,ownername,level,ranks);
    
// Use Have to enter command like this /createfac Knights John 10 5
    

Reply


Messages In This Thread
Just a simple question - by StrikerZ - 26.10.2016, 15:49
Re: Just a simple question - by ThatFag - 26.10.2016, 16:06
Re: Just a simple question - by StrikerZ - 26.10.2016, 16:11
Re: Just a simple question - by ThatFag - 26.10.2016, 16:13
Re: Just a simple question - by StrikerZ - 26.10.2016, 16:15
Re: Just a simple question - by ThatFag - 26.10.2016, 16:20
Re: Just a simple question - by StrikerZ - 27.10.2016, 10:00
Re: Just a simple question - by StrikerZ - 27.10.2016, 15:20
Re: Just a simple question - by Maheerali - 28.10.2016, 08:51

Forum Jump:


Users browsing this thread: 1 Guest(s)