LifeStealer 1 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 Ahoj udělal sem si warpy. Jedny na derby a druhý normální. 1. Derby public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/derby",cmdtext,true) == 0) { ShowPlayerDialog(playerid,DIALOG_WARPY,DIALOG_STYLE_LIST,"Warps","nPozice 1\nPozice 2\nPozice 3\nPozice 4","Ok",""); return 1; } return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_WARPY) { if(response == 1) { switch(listitem) { case 0: { SetPlayerPos(playerid, 1709.19995117,-1366.80004883,357.89999390,0.00000000); SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Pozice 1"); } case 1: { SetPlayerPos(playerid, 1546.80004883,-1510.40002441,359.29998779,0.00000000); SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Pozice 2"); } case 2: { SetPlayerPos(playerid, 1543.30004883,-1201.09997559,359.10000610,0.00000000); SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Pozice 3"); } case 3: { SetPlayerPos(playerid, 1543.30004883,-1201.09997559,359.10000610,0.00000000); SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Pozice 4"); } } } } return 1; } 2. A tady normální warpy public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/warps",cmdtext,true) == 0) { ShowPlayerDialog(playerid,DIALOG_WARPY,DIALOG_STYLE_LIST,"Warps","nDouble Jump\nBus Jump\nJump Chiliand\nHora Chiliand\nEmpire Jump\nNGR Jump\nWater Jump","Ok",""); return 1; } return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_WARPY) { if(response == 1) { switch(listitem) { case 0: { SetPlayerPos(playerid, 2755.39990234,-1644.09997559,258.00000000,0.00000000); SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Double Jump"); } case 1: { SetPlayerPos(playerid, 1043.69995117,-1585.50000000,556.20001221,0.00000000); SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Bus Jump"); } case 2: { SetPlayerPos(playerid, -2302.10009766,-1591.69995117,684.20001221,0.00000000); SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Jump Chiliand"); } case 3: { SetPlayerPos(playerid, -2319.89990234,-1633.80004883,483.29998779,0.00000000); SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Horu Chiliand"); } case 4: { SetPlayerPos(playerid, -829.90002441,-279.89999390,457.39999390,0.00000000); SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Empire Jump"); } case 5: { SetPlayerPos(playerid, 1784.00000000,-968.50000000,904.50000000,0.00000000); SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na NGR Jump"); } case 6: { SetPlayerPos(playerid, 974.79998779,-1912.69995117,470.60000610,0.00000000); SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Water Race"); } } } } return 1; } A já potřebuji udělat aby se nepřekrývali, protože v /derby dám warp na pozici 1 a portne mě to na DoubleJump. Párám se stím, už nějakou dobu a nic Link to comment Share on other sites More sharing options...
0 dajmon1026 1 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 zmen si v tych normalnych warpoch dialogid nemozes mat 2 rovnake dialogid a dufat ze sa ti to nebude prekryvat Link to comment Share on other sites More sharing options...
0 LifeStealer 1 Odesláno: 31. Březen, 2012 Author Share Odesláno: 31. Březen, 2012 zmen si v tych normalnych warpoch dialogid nemozes mat 2 rovnake dialogid a dufat ze sa ti to nebude prekryvat Furt se to překrývá "pale" Link to comment Share on other sites More sharing options...
0 dajmon1026 1 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 a dal si to napr. takto? : ShowPlayerDialog(playerid,5875,DIALOG_STYLE_LIST,"Warps","nDouble Jump\nBus Jump\nJump Chiliand\nHora Chiliand\nEmpire Jump\nNGR Jump\nWater Jump","Ok",""); if(dialogid == 5875) { ... Link to comment Share on other sites More sharing options...
0 LifeStealer 1 Odesláno: 31. Březen, 2012 Author Share Odesláno: 31. Březen, 2012 Ano a to mě psalo error Link to comment Share on other sites More sharing options...
0 dajmon1026 1 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 jaky? Link to comment Share on other sites More sharing options...
0 LifeStealer 1 Odesláno: 31. Březen, 2012 Author Share Odesláno: 31. Březen, 2012 C:\Users\ps\Desktop\MujMODSAMP.pwn(277) : error 014: invalid statement; not in switch C:\Users\ps\Desktop\MujMODSAMP.pwn(277) : warning 215: expression has no effect C:\Users\ps\Desktop\MujMODSAMP.pwn(277) : error 001: expected token: ";", but found ":" C:\Users\ps\Desktop\MujMODSAMP.pwn(277) : error 029: invalid expression, assumed zero C:\Users\ps\Desktop\MujMODSAMP.pwn(277) : fatal error 107: too many error messages on one line Link to comment Share on other sites More sharing options...
0 dajmon1026 1 Odesláno: 31. Březen, 2012 Share Odesláno: 31. Březen, 2012 a riadok 277 je ShowPlayerDialog(playerid,5875,DIALOG_STYLE_LIST,"Warps","nDouble Jump\nBus Jump\nJump Chiliand\nHora Chiliand\nEmpire Jump\nNGR Jump\nWater Jump","Ok",""); ? ked tak si ma pridaj na skype : dajmon6 a tam ti s tym pomozem Link to comment Share on other sites More sharing options...
Dotaz
LifeStealer 1
Ahoj udělal sem si warpy. Jedny na derby a druhý normální.
1. Derby
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/derby",cmdtext,true) == 0)
{
ShowPlayerDialog(playerid,DIALOG_WARPY,DIALOG_STYLE_LIST,"Warps","nPozice 1\nPozice 2\nPozice 3\nPozice 4","Ok","");
return 1;
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_WARPY)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
SetPlayerPos(playerid, 1709.19995117,-1366.80004883,357.89999390,0.00000000);
SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Pozice 1");
}
case 1:
{
SetPlayerPos(playerid, 1546.80004883,-1510.40002441,359.29998779,0.00000000);
SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Pozice 2");
}
case 2:
{
SetPlayerPos(playerid, 1543.30004883,-1201.09997559,359.10000610,0.00000000);
SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Pozice 3");
}
case 3:
{
SetPlayerPos(playerid, 1543.30004883,-1201.09997559,359.10000610,0.00000000);
SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Pozice 4");
}
}
}
}
return 1;
}
2. A tady normální warpy
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/warps",cmdtext,true) == 0)
{
ShowPlayerDialog(playerid,DIALOG_WARPY,DIALOG_STYLE_LIST,"Warps","nDouble Jump\nBus Jump\nJump Chiliand\nHora Chiliand\nEmpire Jump\nNGR Jump\nWater Jump","Ok","");
return 1;
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_WARPY)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
SetPlayerPos(playerid, 2755.39990234,-1644.09997559,258.00000000,0.00000000);
SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Double Jump");
}
case 1:
{
SetPlayerPos(playerid, 1043.69995117,-1585.50000000,556.20001221,0.00000000);
SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Bus Jump");
}
case 2:
{
SetPlayerPos(playerid, -2302.10009766,-1591.69995117,684.20001221,0.00000000);
SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Jump Chiliand");
}
case 3:
{
SetPlayerPos(playerid, -2319.89990234,-1633.80004883,483.29998779,0.00000000);
SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Horu Chiliand");
}
case 4:
{
SetPlayerPos(playerid, -829.90002441,-279.89999390,457.39999390,0.00000000);
SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Empire Jump");
}
case 5:
{
SetPlayerPos(playerid, 1784.00000000,-968.50000000,904.50000000,0.00000000);
SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na NGR Jump");
}
case 6:
{
SetPlayerPos(playerid, 974.79998779,-1912.69995117,470.60000610,0.00000000);
SendClientMessage(playerid,COLOR_GREEN,"Odwarpoval si se na Water Race");
}
}
}
}
return 1;
}
A já potřebuji udělat aby se nepřekrývali, protože v /derby dám warp na pozici 1 a portne mě to na DoubleJump. Párám se stím, už nějakou dobu a nic
Link to comment
Share on other sites
7 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now