Mini Help
#2

First of all ... i have made your code properly:

PHP код:
new vowned[8];

CMD:cars(playerid,params[]) {
    new 
player1;
    if(
sscanf(params,"i",player1)) {
        new 
handle[770],string[128];
        
format(string,sizeof string,"{FFFF00}NickName : %s\n",pName(playerid));
        
strcat(handle,string);
        for(new 
0sizeof(vowned); i++)
        {
            new 
string[100];
            
format(string,sizeof(string),"\n{FFFFFF}Slot %i: Empty", (i+1));
            if(!
PlayerInfo[playerid][vowned[i]]) strcat(handle,string);
            
format(string,sizeof string,"\n{FFFFFF}Slot %i: {33FF33}%s {FFFFFF}ID: {33FF33}%d",(i+1),VehicleInfo[GetPlayerVehicleID(playerid)][name],GetPlayerVehicleID(playerid));
            
strcat(handle,string);
        }
        return 
ShowPlayerDialog(playerid0DIALOG_STYLE_MSGBOX"Player List"handle"Ok""");
    }
    new 
handle[770],string[128];
    
format(string,sizeof string,"{FFFF00}NickName : %s\n",pName(player1));
    
strcat(handle,string);
    for(new 
0sizeof(vowned); i++)
    {
        new 
string[100];
        
format(string,sizeof(string),"\n{FFFFFF}Slot %i: Empty", (i+1));
        if(!
PlayerInfo[player1][vowned[i]]) strcat(handle,string);
        
format(string,sizeof string,"\n{FFFFFF}Slot %i: {33FF33}%s {FFFFFF}ID: {33FF33}%d",(i+1),VehicleInfo[GetPlayerVehicleID(player1)][name],GetPlayerVehicleID(player1));
        
strcat(handle,string);
    }
    return 
ShowPlayerDialog(playerid0DIALOG_STYLE_MSGBOX"Player List"handle"Ok""");

so the one who wants to fix it doesn't have to vomit ^^
Reply


Messages In This Thread
Mini Help - by Zorono - 14.05.2016, 11:41
Re: Mini Help - by BiosMarcel - 14.05.2016, 12:05
Re: Mini Help - by BiosMarcel - 14.05.2016, 12:08
Re: Mini Help - by Konstantinos - 14.05.2016, 12:12
Re: Mini Help - by Zorono - 14.05.2016, 13:39
Re: Mini Help - by Zorono - 16.05.2016, 11:28
Re: Mini Help - by Zorono - 19.05.2016, 22:53
Re: Mini Help - by Stinged - 20.05.2016, 03:47
Re: Mini Help - by Zorono - 20.05.2016, 22:50

Forum Jump:


Users browsing this thread: 1 Guest(s)