CMD:undercover(playerid, params[])
{
if (GetFactionType(playerid) != FACTION_POLICE)
return SendErrorMessage(playerid, "You must be a police officer.");
switch (listitem)
{
case 0:
{
PlayerData[playerid][pClothesType] = 1;
switch (PlayerData[playerid][pGender])
{
case 1:
ShowModelSelectionMenu(playerid, "Clothes", MODEL_SELECTION_CLOTHES, g_aMaleSkins, sizeof(g_aMaleSkins), -16.0, 0.0, -55.0);
case 2:
ShowModelSelectionMenu(playerid, "Clothes", MODEL_SELECTION_CLOTHES, g_aFemaleSkins, sizeof(g_aFemaleSkins), -16.0, 0.0, -55.0);
}
}
}
return 1;
}
Dialog:Undercover(playerid, response, listitem, inputtext[])
{
switch (listitem)
{
case 0:
{
PlayerData[playerid][pClothesType] = 1;
switch (PlayerData[playerid][pGender])
{
case 1:
ShowModelSelectionMenu(playerid, "Clothes", MODEL_SELECTION_CLOTHES, g_aMaleSkins, sizeof(g_aMaleSkins), -16.0, 0.0, -55.0);
case 2:
ShowModelSelectionMenu(playerid, "Clothes", MODEL_SELECTION_CLOTHES, g_aFemaleSkins, sizeof(g_aFemaleSkins), -16.0, 0.0, -55.0);
}
}
}
return 1;
}
error 017: undefined symbol "listitem"
(33561) : error 014: invalid statement; not in switch
(33561) : warning 215: expression has no effect
(33561) : error 001: expected token: ";", but found ":"
(33561) : error 029: invalid expression, assumed zero
(33561) : fatal error 107: too many error messages on one line
CHange Dialog:Undercover(playerid, response, listitem, inputtext[])
{
switch (listitem)
{
case 0:
{
PlayerData[playerid][pClothesType] = 1;
switch (PlayerData[playerid][pGender])
{
case 1:
ShowModelSelectionMenu(playerid, "Clothes", MODEL_SELECTION_CLOTHES, g_aMaleSkins, sizeof(g_aMaleSkins), -16.0, 0.0, -55.0);
case 2:
ShowModelSelectionMenu(playerid, "Clothes", MODEL_SELECTION_CLOTHES, g_aFemaleSkins, sizeof(g_aFemaleSkins), -16.0, 0.0, -55.0);
}
}
}
return 1;
}
To
Dialog:Undercover(playerid, response, listitem, inputtext[])
{
PlayerData[playerid][pClothesType] = 1;
switch (PlayerData[playerid][pGender])
{
case 1:
ShowModelSelectionMenu(playerid, "Clothes", MODEL_SELECTION_CLOTHES, g_aMaleSkins, sizeof(g_aMaleSkins), -16.0, 0.0, -55.0);
case 2:
ShowModelSelectionMenu(playerid, "Clothes", MODEL_SELECTION_CLOTHES, g_aFemaleSkins, sizeof(g_aFemaleSkins), -16.0, 0.0, -55.0);
}
return 1;
}
error 017: undefined symbol "listitem"
CMD:undercover(playerid, params[])
{
if (GetFactionType(playerid) != FACTION_POLICE)
return SendErrorMessage(playerid, "You must be a police officer.");
PlayerData[playerid][pClothesType] = 1;
switch (PlayerData[playerid][pGender])
{
case 1:
ShowModelSelectionMenu(playerid, "Clothes", MODEL_SELECTION_CLOTHES, g_aMaleSkins, sizeof(g_aMaleSkins), -16.0, 0.0, -55.0);
case 2:
ShowModelSelectionMenu(playerid, "Clothes", MODEL_SELECTION_CLOTHES, g_aFemaleSkins, sizeof(g_aFemaleSkins), -16.0, 0.0, -55.0);
}
return 1;
}
ShowModelSelectionMenu(playerid, ListID, header_text[], dialogBGcolor = 0x4A5A6BBB, previewBGcolor = 0x88888899 , tdSelectionColor = 0xFFFF00AA)
forward OnPlayerModelSelection(playerid, response, listid, modelid);
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
return 1;
}
ever heard of??
pawn Код:
|