09.10.2018, 19:01
Errors:
Codes:
How to fix??
Code:
error 079: inconsistent return types (array & non-array)
Code:
if(dialogid == D_VLIST)
{
if(response)
{
if(listitem == 0)
{
if(PlayerInfo[playerid][dRank] >= 1)
{
new str[1200];
strcat(str, "{084B8A}/vheal ,/varmour ,/vheli ,/vskin ,/vcar\n");
strcat(str, "/fr ,/v ,/vtime ,/vweather ,/vweap ,/vnos ,/vboat\n");
ShowPlayerDialog(playerid, 5250, DIALOG_STYLE_MSGBOX, "{8A0868}.:::::::{FFFFFF}VIP 1{8A0868}:::::::.", str, "ok", "");
}
}
if(listitem == 1)
{
if(PlayerInfo[playerid][dRank] >= 2)
{
new str[1200];
strcat(str, "{084B8A}/vheal ,/varmour ,/vheli ,/vskin ,/vcar ,/vbike\n");
strcat(str, "/fr ,/v ,/vtime ,/vweather ,/vweap ,/vnos\n");
strcat(str, "/vcolor ,/vson ,/vsoff ,/vboat ,/armedvon ,/armedvoff\n");
ShowPlayerDialog(playerid, 5150, DIALOG_STYLE_MSGBOX, "{8A0868}.:::::::{FFFFFF}VIP 2{8A0868}:::::::.", str, "ok", "");
}
}
if(listitem == 2)
{
if(PlayerInfo[playerid][dRank] >= 3)
{
new str[1200];
strcat(str, "{0080FF}/vheal ,/varmour ,/vheli ,/vskin ,/vcar ,/vbike\n");
strcat(str, "/fr ,/v ,/vtime ,/vweather ,/vweap ,/vnos ,/vfix ,/vBoost\n");
strcat(str, "/vcolor ,/vammo ,/vson ,/vsoff ,/vboat ,/armedvon ,/armedvoff\n");
ShowPlayerDialog(playerid, 5050, DIALOG_STYLE_MSGBOX, "{8A0868}.:::::::{FFFFFF}VIP 3{8A0868}:::::::.", str, "ok", "");
}
}
}
return 1;
}


