How to solve this >_<
#1

This is the lines that give errors:
Код:
 }
public OnPlayerClickPlayer(playerid, clickedplayerid, source);
{
	return 1;
}
And this is the errors :
Код:
C:\Users\FX 7750\Desktop\Server\gamemodes\APB.pwn(1035) : warning 217: loose indentation
C:\Users\FX 7750\Desktop\Server\gamemodes\APB.pwn(1035) : error 029: invalid expression, assumed zero
C:\Users\FX 7750\Desktop\Server\gamemodes\APB.pwn(1035) : error 004: function "OnPlayerClickPlayer" is not implemented
C:\Users\FX 7750\Desktop\Server\gamemodes\APB.pwn(1039) : error 030: compound statement not closed at the end of file (started at line 614)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
So Please tell me how to fix it, i'm confused and can't solve it
it was just a car dialog so people can go and just press and then the car will appeare and they will driver it but idk what happened to get this
Reply
#2

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}

You don't need that ";" in the function
Reply
#3

You have added a extra bracket at the end of the callback.

Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source);
{
	return 1;
}
This is the original code,

pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return 1;
}
Reply
#4

I'ver Removed it and still the same errors
Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	return 1;
}
And Same Errors:

Код:
C:\Users\FX 7750\Desktop\Server\gamemodes\APB.pwn(1035) : warning 217: loose indentation
C:\Users\FX 7750\Desktop\Server\gamemodes\APB.pwn(1035) : error 029: invalid expression, assumed zero
C:\Users\FX 7750\Desktop\Server\gamemodes\APB.pwn(1035) : error 004: function "OnPlayerClickPlayer" is not implemented
C:\Users\FX 7750\Desktop\Server\gamemodes\APB.pwn(1039) : error 030: compound statement not closed at the end of file (started at line 614)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
BTW i was creating a car dialog and all went right untill this errors came and then i deleted it and the errors still there and can't fix them whatsoever
Reply
#5

You're missing closing bracket(s) before OnPlayerClickPlayer callback.
It starts at line 614 but it never ends (it's not closed).
Reply
#6

As Kostantinos said. Can you please provide the code to help you also?
Reply
#7

it was just a car dialog like
Код:
if(dialogid == 13)
	{
	if(response == 0) return SendClientMessage(playerid, 0xff0000ff, "[BoT] You Closed The MoreBikes Dialog");
	switch(listitem)
	{
	case 0:{
	new Float:X, Float:Y, Float:Z, Float:Angle, Car;
	GetPlayerPos(playerid, X, Y, Z);
	GetPlayerFacingAngle(playerid, Angle);
	Car = CreateVehicle(521, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
	PutPlayerInVehicle(playerid, Car, 0);
	}
	case 1:{
	new Float:X, Float:Y, Float:Z, Float:Angle, Car;
	GetPlayerPos(playerid, X, Y, Z);
	GetPlayerFacingAngle(playerid, Angle);
	Car = CreateVehicle(523, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
	PutPlayerInVehicle(playerid, Car, 0);
	}
	case 2:{
	new Float:X, Float:Y, Float:Z, Float:Angle, Car;
	GetPlayerPos(playerid, X, Y, Z);
	GetPlayerFacingAngle(playerid, Angle);
	Car = CreateVehicle(463, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
	PutPlayerInVehicle(playerid, Car, 0);
	}
	case 3:{
	new Float:X, Float:Y, Float:Z, Float:Angle, Car;
	GetPlayerPos(playerid, X, Y, Z);
	GetPlayerFacingAngle(playerid, Angle);
	Car = CreateVehicle(586, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
	PutPlayerInVehicle(playerid, Car, 0);
	}
	case 4:{
	new Float:X, Float:Y, Float:Z, Float:Angle, Car;
	GetPlayerPos(playerid, X, Y, Z);
	GetPlayerFacingAngle(playerid, Angle);
	Car = CreateVehicle(468, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
	PutPlayerInVehicle(playerid, Car, 0);
	}
	case 5:{
	new Float:X, Float:Y, Float:Z, Float:Angle, Car;
	GetPlayerPos(playerid, X, Y, Z);
	GetPlayerFacingAngle(playerid, Angle);
	Car = CreateVehicle(471, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
	PutPlayerInVehicle(playerid, Car, 0);
	}
	}
	}
And i kept deleting line by line and it gave the same error untill i deleted the whole dialog and idk what to do >_<
Reply
#8

pawn Код:
if(dialogid == 13)
{
    if(response == 0) return SendClientMessage(playerid, 0xff0000ff, "[BoT] You Closed The MoreBikes Dialog");
    switch(listitem)
    {
        case 0:
        {
            new Float:X, Float:Y, Float:Z, Float:Angle, Car;
            GetPlayerPos(playerid, X, Y, Z);
            GetPlayerFacingAngle(playerid, Angle);
            Car = CreateVehicle(521, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
            PutPlayerInVehicle(playerid, Car, 0);
        }
        case 1:
        {
            new Float:X, Float:Y, Float:Z, Float:Angle, Car;
            GetPlayerPos(playerid, X, Y, Z);
            GetPlayerFacingAngle(playerid, Angle);
            Car = CreateVehicle(523, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
            PutPlayerInVehicle(playerid, Car, 0);
        }
        case 2:
        {
            new Float:X, Float:Y, Float:Z, Float:Angle, Car;
            GetPlayerPos(playerid, X, Y, Z);
            GetPlayerFacingAngle(playerid, Angle);
            Car = CreateVehicle(463, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
            PutPlayerInVehicle(playerid, Car, 0);
        }
        case 3:
        {
            new Float:X, Float:Y, Float:Z, Float:Angle, Car;
            GetPlayerPos(playerid, X, Y, Z);
            GetPlayerFacingAngle(playerid, Angle);
            Car = CreateVehicle(586, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
            PutPlayerInVehicle(playerid, Car, 0);
        }
        case 4:
        {
            new Float:X, Float:Y, Float:Z, Float:Angle, Car;
            GetPlayerPos(playerid, X, Y, Z);
            GetPlayerFacingAngle(playerid, Angle);
            Car = CreateVehicle(468, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
            PutPlayerInVehicle(playerid, Car, 0);
        }
        case 5:
        {
            new Float:X, Float:Y, Float:Z, Float:Angle, Car;
            GetPlayerPos(playerid, X, Y, Z);
            GetPlayerFacingAngle(playerid, Angle);
            Car = CreateVehicle(471, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
            PutPlayerInVehicle(playerid, Car, 0);
        }
    }
}
Try this and check your OnDialogResponse callback it's probably not closed.
Reply
#9

I Copied the dialog in somewhere else in my pc and then I Deleted the WHOLE Dialog like (350) lines to fix this and complied, it compiled fine, so i put it back like it was before and now its good and no errors, thanks for helping Guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)