Guest User

Port

a guest
Feb 15th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.33 KB | None | 0 0
  1.         case DIALOG_PORT:
  2.         {
  3.             if(response)
  4.             {
  5.                 SetPlayerInterior(playerid, 0);
  6.                 SetPlayerVirtualWorld(playerid, 0);
  7.                 switch(listitem)
  8.                 {
  9.                     if(IsPlayerInAnyVehicle(playerid)) //1757
  10.                     {
  11.                         new vozilo = GetPlayerVehicleID(playerid);
  12.                         if(listitem == 0) { SetPlayerPos(playerid, 2276.7539,-85.2362,26.4977) && SCM(playerid, BELA,"Portao si se do Policije") && SetVehiclePos(vozilo, 2276.7539,-85.2362,26.4977) && PutPlayerInVehicle(playerid, vozilo, 0); }
  13.                         if(listitem == 1) { SetPlayerPos(playerid, 2390.0713,92.7207,26.3359) && SCM(playerid, BELA,"Portao si se do Banke") && SetVehiclePos(vozilo, 2390.0713,92.7207,26.3359) && PutPlayerInVehicle(playerid, vozilo, 0); }
  14.                         if(listitem == 2) { SetPlayerPos(playerid, 2338.6211,60.6317,26.4844) && SCM(playerid, BELA,"Portao si se do Gun-Shopa") && SetVehiclePos(vozilo, 2338.6211,60.6317,26.4844) && PutPlayerInVehicle(playerid, vozilo, 0); }
  15.                         if(listitem == 3) { SetPlayerPos(playerid, 1380.0525,202.4533,19.5547) && SCM(playerid, BELA,"Portao si se do MontGomery-a") && SetVehiclePos(vozilo, 1380.0525,202.4533,19.5547) && PutPlayerInVehicle(playerid, vozilo, 0); }
  16.                     }
  17.                     else
  18.                     {
  19.                         if(listitem == 0) { SetPlayerPos(playerid, 2276.7539,-85.2362,26.4977) && SCM(playerid, BELA,"Portao si se do Policije"); }
  20.                         if(listitem == 0) { SetPlayerPos(playerid, 2390.0713,92.7207,26.3359) && SCM(playerid, BELA,"Portao si se do Banke"); }
  21.                         if(listitem == 0) { SetPlayerPos(playerid, 2338.6211,60.6317,26.4844) && SCM(playerid, BELA,"Portao si se do Gun-Shopa"); }
  22.                         if(listitem == 0) { SetPlayerPos(playerid, 1380.0525,202.4533,19.5547) && SCM(playerid, BELA,"Portao si se do MontGomery-a"); }
  23.                     }
  24.                     return 1;
  25.                 }
  26.             }
  27.         }
  28.  
  29.  
  30.  
  31. C:\Users\a\Desktop\Flint Hospital RP\gamemodes\FHRPgm.pwn(1757) : error 002: only a single statement (or expression) can follow each "case"
  32. C:\Users\a\Desktop\Flint Hospital RP\gamemodes\FHRPgm.pwn(1757 -- 1758) : error 028: invalid subscript (not an array or too many subscripts): "IsPlayerInAnyVehicle"
  33. C:\Users\a\Desktop\Flint Hospital RP\gamemodes\FHRPgm.pwn(1757 -- 1759) : error 001: expected token: "}", but found "new"
  34. C:\Users\a\Desktop\Flint Hospital RP\gamemodes\FHRPgm.pwn(1757 -- 1759) : fatal error 107: too many error messages on one line
Advertisement
Add Comment
Please, Sign In to add comment