Pomoc Dialog

Započeo HOB1x, Decembar 13, 2012, 13:13:56 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:CITYWALL
Detaljan opis problema:Pa kad kucam /invite da mi pokaze dialog i dali da prihvatam ili ne
Kud meni ovako je to invite ako mogu neko da edit i dami da bicu mnogo zablogadaren

if(strcmp(cmd, "/invite", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]");
return 1;
}
new para1;
new ftext[20];
para1 = ReturnUser(tmp);
if (PlayerInfo[playerid][pLeader] >= 1)
{
    if(IsPlayerConnected(para1))
    {
        if(para1 != INVALID_PLAYER_ID)
        {
        if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
        else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI/ATF"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
        else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "National Guard"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
        else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Firemen/Ambulance"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
        else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "La Cosa Nostra"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 120); }
        else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Yakuza"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 258); }
        else if(PlayerInfo[playerid][pLeader] == 7) { return 1; }
        else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Hitman Agency"; ChosenSkin[para1] = 127; SetPlayerSkin(para1, 127); }
        else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "CNN Studio"; ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); }
        else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi Cab Company"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); }
        else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Lokalna mafija"; ChosenSkin[para1] = 116; SetPlayerSkin(para1, 258); }
        else if(PlayerInfo[playerid][pLeader] == 13) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "GrooveStreet"; ChosenSkin[para1] = 100; SetPlayerSkin(para1, 258); }
        else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "School Instructors"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }
        else { return 1; }
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
PlayerInfo[para1][pRank] = 1;
printf("AdmCmd: %s Go prikluci %s za vlez vo %s.", sendername, giveplayer, ftext);
format(string, sizeof(string), "   Se priklucivte vo %s, pokaneti ste od lider %s", ftext, sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "   Go ubacivte %s vo %s.", giveplayer,ftext);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
SetPlayerInterior(para1,0);
new rand = random(sizeof(gInviteSpawns));
SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
TogglePlayerControllable(para1, 0);
    SelectChar[para1] = 255;
    SelectCharID[para1] = PlayerInfo[para1][pMember];
    SelectCharPlace[para1] = 1;
    PlayerInfo[para1][pModel] = ChosenSkin[para1];
    PlayerInfo[para1][pChar] = ChosenSkin[para1];
    SendClientMessage(para1, COLOR_LIGHTRED, "* Koristi 'next' da izberete skin.");
    SendClientMessage(para1, COLOR_LIGHTRED, "* koga ke pronajdete skin,napisete 'done'.");
}
}//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Ne ste ovlasteni za taa komanda,samo lideri!");
}
}
return 1;
}

if(strcmp(cmd, "/invite", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]");
return 1;
}
new para1;
new ftext[20];
para1 = ReturnUser(tmp);
if (PlayerInfo[playerid][pLeader] >= 1)
{
    if(IsPlayerConnected(para1))
    {
ShowPlayerDialog(para1, 456, DIALOG_STYLE_LIST, "izaberi", "da\ne", "OK", "EXIT");
}
}//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Ne ste ovlasteni za taa komanda,samo lideri!");
}
}
return 1;
}
i onda pod ondialogresponse
if(dialogid == 456)
{
if(response)
{
if(listitem == 0)
{
                             if(para1 != INVALID_PLAYER_ID)
        {
        if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
        else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI/ATF"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
        else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "National Guard"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
        else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Firemen/Ambulance"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
        else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "La Cosa Nostra"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 120); }
        else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Yakuza"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 258); }
        else if(PlayerInfo[playerid][pLeader] == 7) { return 1; }
        else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Hitman Agency"; ChosenSkin[para1] = 127; SetPlayerSkin(para1, 127); }
        else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "CNN Studio"; ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); }
        else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi Cab Company"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); }
        else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Lokalna mafija"; ChosenSkin[para1] = 116; SetPlayerSkin(para1, 258); }
        else if(PlayerInfo[playerid][pLeader] == 13) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "GrooveStreet"; ChosenSkin[para1] = 100; SetPlayerSkin(para1, 258); }
        else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "School Instructors"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }
        else { return 1; }
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
PlayerInfo[para1][pRank] = 1;
printf("AdmCmd: %s Go prikluci %s za vlez vo %s.", sendername, giveplayer, ftext);
format(string, sizeof(string), "   Se priklucivte vo %s, pokaneti ste od lider %s", ftext, sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "   Go ubacivte %s vo %s.", giveplayer,ftext);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
SetPlayerInterior(para1,0);
new rand = random(sizeof(gInviteSpawns));
SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
TogglePlayerControllable(para1, 0);
    SelectChar[para1] = 255;
    SelectCharID[para1] = PlayerInfo[para1][pMember];
    SelectCharPlace[para1] = 1;
    PlayerInfo[para1][pModel] = ChosenSkin[para1];
    PlayerInfo[para1][pChar] = ChosenSkin[para1];
    SendClientMessage(para1, COLOR_LIGHTRED, "* Koristi 'next' da izberete skin.");
    SendClientMessage(para1, COLOR_LIGHTRED, "* koga ke pronajdete skin,napisete 'done'.");
}
if(listitem == 1)
{
                        SendClientMessage(para1, -1, " odbio si organizaciju ");
}
}
});
probaj vako nekako

Dava mi ove erore :@

C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(1554) : error 004: function "SendFamilyMessage" is not implemented
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(1555) : error 004: function "SendFamilyMessage" is not implemented
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(1556) : error 004: function "SendFamilyMessage" is not implemented
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(1800) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(1825) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(1845) : error 004: function "SetPlayerCriminal" is not implemented
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(1850) : error 004: function "SetPlayerCriminal" is not implemented
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(2242) : error 004: function "ClearCrime" is not implemented
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(2243) : error 004: function "ClearFishes" is not implemented
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(2244) : error 004: function "ClearCooking" is not implemented
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(2245) : error 004: function "ClearGroceries" is not implemented
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(2246) : error 004: function "ClearMarriage" is not implemented
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(2279) : error 004: function "JoinChannelNr" is not implemented
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(2302) : error 004: function "OnPlayerLogin" is not implemented
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(2344) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(2349) : error 004: function "OnPlayerRegister" is not implemented
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(2371) : error 017: undefined symbol "para1"
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(2373) : error 017: undefined symbol "para1"
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(2373) : error 017: undefined symbol "para1"
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(2373) : error 017: undefined symbol "ftext"
C:\Documents and Settings\bbbb\Desktop\ \Citywall\gamemodes\CITYWALL.pwn(2373) : fatal error 107: too many error messages on one line

if(dialogid == 456)
{
if(response)
{
if(listitem == 0)
{
                             if(para1 != INVALID_PLAYER_ID)
        {
        if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
        else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI/ATF"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
        else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "National Guard"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
        else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Firemen/Ambulance"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
        else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "La Cosa Nostra"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 120); }
        else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Yakuza"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 258); }
        else if(PlayerInfo[playerid][pLeader] == 7) { return 1; }
        else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Hitman Agency"; ChosenSkin[para1] = 127; SetPlayerSkin(para1, 127); }
        else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "CNN Studio"; ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); }
        else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi Cab Company"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); }
        else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Lokalna mafija"; ChosenSkin[para1] = 116; SetPlayerSkin(para1, 258); }
        else if(PlayerInfo[playerid][pLeader] == 13) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "GrooveStreet"; ChosenSkin[para1] = 100; SetPlayerSkin(para1, 258); }
        else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "School Instructors"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }
        else { return 1; }
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
PlayerInfo[para1][pRank] = 1;
printf("AdmCmd: %s Go prikluci %s za vlez vo %s.", sendername, giveplayer, ftext);
format(string, sizeof(string), "   Se priklucivte vo %s, pokaneti ste od lider %s", ftext, sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "   Go ubacivte %s vo %s.", giveplayer,ftext);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
SetPlayerInterior(para1,0);
new rand = random(sizeof(gInviteSpawns));
SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
TogglePlayerControllable(para1, 0);
    SelectChar[para1] = 255;
    SelectCharID[para1] = PlayerInfo[para1][pMember];
    SelectCharPlace[para1] = 1;
    PlayerInfo[para1][pModel] = ChosenSkin[para1];
    PlayerInfo[para1][pChar] = ChosenSkin[para1];
    SendClientMessage(para1, COLOR_LIGHTRED, "* Koristi 'next' da izberete skin.");
    SendClientMessage(para1, COLOR_LIGHTRED, "* koga ke pronajdete skin,napisete 'done'.");
                                                }
                       if(listitem == 1)
                       {
                                                SendClientMessage(para1, -1, " odbio si organizaciju ");
                                               }
                       }
                       }
                                               }
??