Help :D
#1

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
if(
dialogid == 12)
        {
                if(
response == 1)
                {
                   if(
listitem == 0)
                        {
                           new 
Float:xFloat:yFloat:zFloat:a;
                           
GetPlayerPos(playeridx,y,z);
                           
GetPlayerFacingAngle(playerida);
                           new 
vehicleid CreateVehicle(415x+3,y,za, -1, -1, -1);
                           
PutPlayerInVehicle(playeridvehicleid0);
                           
PlayerPlaySound(playerid11330.00.00.0);
                           }
                   if(
listitem == 1)
                           {
                           new 
Float:xFloat:yFloat:zFloat:a;
                           
GetPlayerPos(playeridx,y,z);
                           
GetPlayerFacingAngle(playerida);
                           new 
vehicleid CreateVehicle(541x+3,y,za, -1, -1, -1);
                           
PutPlayerInVehicle(playeridvehicleid0);
                           
PlayerPlaySound(playerid11330.00.00.0);
                         }
                   if(
listitem == 2)
                         {
                           new 
Float:xFloat:yFloat:zFloat:a;
                           
GetPlayerPos(playeridx,y,z);
                           
GetPlayerFacingAngle(playerida);
                           new 
vehicleid CreateVehicle(562x+3,y,za, -1, -1, -1);
                           
PutPlayerInVehicle(playeridvehicleid0);
                           
PlayerPlaySound(playerid11330.00.00.0);
                         }
                   if(
listitem == 3)
                           {
                               new 
Float:xFloat:yFloat:zFloat:a;
                               
GetPlayerPos(playeridx,y,z);
                               
GetPlayerFacingAngle(playerida);
                               new 
vehicleid CreateVehicle(451x+3,y,za, -1, -1, -1);
                               
PutPlayerInVehicle(playeridvehicleid0);
                               
PlayerPlaySound(playerid11330.00.00.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;

and i got this erors
PHP код:
C:\Users\Mario\Desktop\matta\Mata Server\gamemodes\stunt.pwn(1076) : error 029invalid expressionassumed 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 225unreachable code
C
:\Users\Mario\Desktop\matta\Mata Server\gamemodes\stunt.pwn(1081) : error 029invalid expressionassumed zero
C
:\Users\Mario\Desktop\matta\Mata Server\gamemodes\stunt.pwn(1081) : error 017undefined symbol "cmd_kill"
C:\Users\Mario\Desktop\matta\Mata Server\gamemodes\stunt.pwn(1081) : error 029invalid expressionassumed zero
C
:\Users\Mario\Desktop\matta\Mata Server\gamemodes\stunt.pwn(1081) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
6 Errors

I think erors are becouse i didnt close with breakets, idk, help me i rly need it
Reply
#2

Where is your OnPlayerClickPlayer?
Reply
#3

right above it.
Reply
#4

fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)