19.10.2011, 14:48
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 12)
{
if(response == 1)
{
if(listitem == 0)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z);
GetPlayerFacingAngle(playerid, a);
new vehicleid = CreateVehicle(415, x+3,y,z, a, -1, -1, -1);
PutPlayerInVehicle(playerid, vehicleid, 0);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
if(listitem == 1)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z);
GetPlayerFacingAngle(playerid, a);
new vehicleid = CreateVehicle(541, x+3,y,z, a, -1, -1, -1);
PutPlayerInVehicle(playerid, vehicleid, 0);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
if(listitem == 2)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z);
GetPlayerFacingAngle(playerid, a);
new vehicleid = CreateVehicle(562, x+3,y,z, a, -1, -1, -1);
PutPlayerInVehicle(playerid, vehicleid, 0);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
if(listitem == 3)
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z);
GetPlayerFacingAngle(playerid, a);
new vehicleid = CreateVehicle(451, x+3,y,z, a, -1, -1, -1);
PutPlayerInVehicle(playerid, vehicleid, 0);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
}
}
if(dialogid == 999)
{
if(response)
{
switch(dialogid)
{
case 999:
{
switch(listitem)
{
case 0:
{
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1,1);
}
case 1:
{
ApplyAnimation(playerid,"PED","handsup", 4.1,0,1,1,1,1,1);
}
case 2:
{
ApplyAnimation(playerid,"DANCING","dance_loop",4.1,1,1,1,1,1,1);
}
case 3:
{
ApplyAnimation(playerid,"DANCING","DAN_Down_A",4.1,1,1,1,1,1,1);
}
case 4:
{
ApplyAnimation(playerid,"DANCING","DAN_Left_A",4.1,1,1,1,1,1,1);
}
case 5:
{
ApplyAnimation(playerid,"DANCING","DAN_Loop_A",4.1,1,1,1,1,1,1);
}
case 6:
{
ApplyAnimation(playerid,"DANCING","DAN_Right_A",4.1,1,1,1,1,1,1);
}
case 7:
{
ApplyAnimation(playerid,"DANCING","DAN_Up_A",4.1,1,1,1,1,1,1);
}
case 8:
{
ApplyAnimation(playerid,"PED","ARRESTgun",4.1,0,1,1,1,1,1);
}
case 9:
{
ApplyAnimation(playerid,"PED","SEAT_idle",4.1,0,1,1,1,1,1);
}
case 10:
{
ApplyAnimation(playerid,"POLICE","Door_Kick",4.1,0,1,1,1,1,1);
}
case 11:
{
ApplyAnimation(playerid,"MISC","bitchslap",4.1,0,1,1,1,1,1);
}
case 12:
{
ApplyAnimation(playerid,"MISC","GRAB_L",4.1,0,1,1,1,1,1);
}
case 13:
{
ApplyAnimation(playerid,"MISC","GRAB_R",4.1,0,1,1,1,1,1);
}
case 14:
{
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
}
case 15:
{
ClearAnimations(playerid);
}
}
}
}
}
return 1;
}
PHP код:
C:\Users\Mario\Desktop\matta\Mata Server\gamemodes\stunt.pwn(1076) : error 029: invalid expression, assumed zero
C:\Users\Mario\Desktop\matta\Mata Server\gamemodes\stunt.pwn(1076) : error 004: function "OnPlayerClickPlayer" is not implemented
C:\Users\Mario\Desktop\matta\Mata Server\gamemodes\stunt.pwn(1081) : warning 225: unreachable code
C:\Users\Mario\Desktop\matta\Mata Server\gamemodes\stunt.pwn(1081) : error 029: invalid expression, assumed zero
C:\Users\Mario\Desktop\matta\Mata Server\gamemodes\stunt.pwn(1081) : error 017: undefined symbol "cmd_kill"
C:\Users\Mario\Desktop\matta\Mata Server\gamemodes\stunt.pwn(1081) : error 029: invalid expression, assumed zero
C:\Users\Mario\Desktop\matta\Mata Server\gamemodes\stunt.pwn(1081) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.