Lujkano 0 Odesláno: 5. Říjen, 2011 Share Odesláno: 5. Říjen, 2011 Cc. Urobil som si dialog ale na OnPlayerDialogResponse my stale hadze 5 chyb. Neviem co s tym je, tu je kod: new Float:x,Float:y,Float:z; if(dialogid==1 && response==1) { switch(listitem) { case 0: { GetPlayerPos(playerid,x,y,z); CreateVehicle(432,x-3.0,y,z,0.0,1,1,300); } case 1: { GetPlayerPos(playerid,x,y,z); CreateVehicle(407,x-3.0,y,z,0.0,1,3,300); } case 2; { GetPlayerPos(playerid,x,y,z); CreateVehicle(411,x-3.0,y,z,0.0,1,0,300); } case 3; { GetPlayerPos(playerid,x,y,z); CreateVehicle(451,x-3.0,y,z,0.0,0,1,300); } case 4; { GetPlayerPos(playerid,x,y,z); CreateVehicle(406,x-3.0,y,z,0.0,1,1,300); } } } Link to comment Share on other sites More sharing options...
0 MajkX 16 Odesláno: 5. Říjen, 2011 Share Odesláno: 5. Říjen, 2011 a co tak pridat errory ? Link to comment Share on other sites More sharing options...
0 Lax. 28 Odesláno: 5. Říjen, 2011 Share Odesláno: 5. Říjen, 2011 new Float:x,Float:y,Float:z;if(dialogid==1 && response==1) { switch(listitem) { case 0: { GetPlayerPos(playerid,x,y,z); CreateVehicle(432,x-3.0,y,z,0.0,1,1,300); } case 1: { GetPlayerPos(playerid,x,y,z); CreateVehicle(407,x-3.0,y,z,0.0,1,3,300); } case 2; { GetPlayerPos(playerid,x,y,z); CreateVehicle(411,x-3.0,y,z,0.0,1,0,300); } case 3; { GetPlayerPos(playerid,x,y,z); CreateVehicle(451,x-3.0,y,z,0.0,0,1,300); } case 4; { GetPlayerPos(playerid,x,y,z); CreateVehicle(406,x-3.0,y,z,0.0,1,1,300); } } } tam nemá byť ; Link to comment Share on other sites More sharing options...
0 Lujkano 0 Odesláno: 5. Říjen, 2011 Author Share Odesláno: 5. Říjen, 2011 Ok teraz my ukazuje error: comput statement not closed at the end of the file (Started at line 315) Error je na 346 a mám tam } Link to comment Share on other sites More sharing options...
0 Lax. 28 Odesláno: 5. Říjen, 2011 Share Odesláno: 5. Říjen, 2011 tak máš zrejme zle zátvorky.. (asi máš o 1 menej ako má byť) Link to comment Share on other sites More sharing options...
0 Lujkano 0 Odesláno: 5. Říjen, 2011 Author Share Odesláno: 5. Říjen, 2011 public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new Float:x,Float:y,Float:z; if(dialogid==1 && response==1) { switch(listitem) { case 0: { GetPlayerPos(playerid,x,y,z); CreateVehicle(432,x-3.0,y,z,0.0,1,1,300); } case 1: { GetPlayerPos(playerid,x,y,z); CreateVehicle(407,x-3.0,y,z,0.0,1,3,300); } case 2: { GetPlayerPos(playerid,x,y,z); CreateVehicle(411,x-3.0,y,z,0.0,1,0,300); } case 3: { GetPlayerPos(playerid,x,y,z); CreateVehicle(451,x-3.0,y,z,0.0,0,1,300); } case 4: { GetPlayerPos(playerid,x,y,z); CreateVehicle(406,x-3.0,y,z,0.0,1,1,300); } } } Co je ne tom zle Link to comment Share on other sites More sharing options...
0 Lax. 28 Odesláno: 5. Říjen, 2011 Share Odesláno: 5. Říjen, 2011 za to daj return true; } Link to comment Share on other sites More sharing options...
Dotaz
Lujkano 0
Cc.
Urobil som si dialog ale na OnPlayerDialogResponse my stale hadze 5 chyb.
Neviem co s tym je, tu je kod:
Link to comment
Share on other sites
6 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