14.05.2016, 12:05
First of all ... i have made your code properly:
so the one who wants to fix it doesn't have to vomit ^^
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 i = 0; i < sizeof(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(playerid, 0, DIALOG_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 i = 0; i < sizeof(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(playerid, 0, DIALOG_STYLE_MSGBOX, "Player List", handle, "Ok", "");
}