Jump to content
  • 0

error 010: invalid function or declaration [ problema]


Question

Posted

[pawn]//===============================================================================================//

if (newkeys==KEY_SECONDARY_ATTACK)

{

if(IsPlayerConnected(playerid))

{

if (PlayerToPoint(2.0, playerid, 1329.1317,-1557.6345,13.5469))

{

SetPlayerPos(playerid,-977.8568,1053.0228,1344.9913);

SetPlayerInterior(playerid, 10);

WantedWarZone[playerid] = 1;

ResetPlayerWeapons(playerid);

}

if (PlayerToPoint(2.0, playerid, -977.8568,1053.0228,1344.9913))

{

SetPlayerPos(playerid,1329.1317,-1557.6345,13.5469);

SetPlayerInterior(playerid, 0);

WantedWarZone[playerid] = 0;

ResetPlayerWeapons(playerid);

}

}

}

}

return false;

}

//===============================================================================================//

//===============================================================================================//[/pawn]

C:\Users\Lil Z and Corricanne\Desktop\IcePlay Gamemodee\IcePlay\gamemodes\GOGF.pwn(34477) : error 010: invalid function or declaration

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

Ce sa fac?

10 answers to this question

Recommended Posts

Posted

mai exact care este linia 34477 ?

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

aia cu return false.

Pai pune in loc de "return false;"

[pawn]

return 0;

[/pawn]

Dar nu inteleg de ce a pus [pawn]return false;[/pawn].. in caz de nu iti merge cu [pawn] return 0; [/pawn] pune

[pawn]

return 1;

[/pawn]

Asa sunt sigur ca iti va merge

Posted

fara return ce iti spun?

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

imd iti spun.

#EDIT

C:\Users\Lil Z and Corricanne\Desktop\IcePlay Gamemodee\IcePlay\gamemodes\GOGF.pwn(10433) : warning 219: local variable "mod" shadows a variable at a preceding level

C:\Users\Lil Z and Corricanne\Desktop\IcePlay Gamemodee\IcePlay\gamemodes\GOGF.pwn(34477) : error 054: unmatched closing brace ("}")

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

[pawn]//===============================================================================================//

if (newkeys==KEY_SECONDARY_ATTACK)

{

if(IsPlayerConnected(playerid))

{

if (PlayerToPoint(2.0, playerid, 1329.1317,-1557.6345,13.5469))

{

SetPlayerPos(playerid,-977.8568,1053.0228,1344.9913);

SetPlayerInterior(playerid, 10);

WantedWarZone[playerid] = 1;

ResetPlayerWeapons(playerid);

}

if (PlayerToPoint(2.0, playerid, -977.8568,1053.0228,1344.9913))

{

SetPlayerPos(playerid,1329.1317,-1557.6345,13.5469);

SetPlayerInterior(playerid, 0);

WantedWarZone[playerid] = 0;

ResetPlayerWeapons(playerid);

}

}

}

}

}[/pawn]

Posted

[tt] if (newkeys==KEY_SECONDARY_ATTACK)

{

if(IsPlayerConnected(playerid))

{

if (PlayerToPoint(2.0, playerid, 1329.1317,-1557.6345,13.5469))

{

SetPlayerPos(playerid,-977.8568,1053.0228,1344.9913);

SetPlayerInterior(playerid, 10);

WantedWarZone[playerid] = 1;

ResetPlayerWeapons(playerid);

}

if (PlayerToPoint(2.0, playerid, -977.8568,1053.0228,1344.9913))

{

SetPlayerPos(playerid,1329.1317,-1557.6345,13.5469);

SetPlayerInterior(playerid, 0);

WantedWarZone[playerid] = 0;

ResetPlayerWeapons(playerid);

}

}

}[/tt]

7bdea99b11.png

rimmon curv.

Posted

[tt] if (newkeys==KEY_SECONDARY_ATTACK)

{

if(IsPlayerConnected(playerid))

{

if (PlayerToPoint(2.0, playerid, 1329.1317,-1557.6345,13.5469))

{

SetPlayerPos(playerid,-977.8568,1053.0228,1344.9913);

SetPlayerInterior(playerid, 10);

WantedWarZone[playerid] = 1;

ResetPlayerWeapons(playerid);

}

if (PlayerToPoint(2.0, playerid, -977.8568,1053.0228,1344.9913))

{

SetPlayerPos(playerid,1329.1317,-1557.6345,13.5469);

SetPlayerInterior(playerid, 0);

WantedWarZone[playerid] = 0;

ResetPlayerWeapons(playerid);

}

}

}[/tt]

C:\Users\Lil Z and Corricanne\Desktop\IcePlay Gamemodee\IcePlay\gamemodes\GOGF.pwn(10433) : warning 219: local variable "mod" shadows a variable at a preceding level

C:\Users\Lil Z and Corricanne\Desktop\IcePlay Gamemodee\IcePlay\gamemodes\GOGF.pwn(34456) : warning 217: loose indentation

C:\Users\Lil Z and Corricanne\Desktop\IcePlay Gamemodee\IcePlay\gamemodes\GOGF.pwn(34478) : error 030: compound statement not closed at the end of file (started at line 33519)

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

Posted

Incearca Asa

[pawn]

if (newkeys==KEY_SECONDARY_ATTACK)

{

if(IsPlayerConnected(playerid))

{

if (PlayerToPoint(2.0, playerid, 1329.1317,-1557.6345,13.5469))

{

SetPlayerPos(playerid,-977.8568,1053.0228,1344.9913);

SetPlayerInterior(playerid, 10);

WantedWarZone[playerid] = 1;

ResetPlayerWeapons(playerid);

}

if (PlayerToPoint(2.0, playerid, -977.8568,1053.0228,1344.9913))

{

SetPlayerPos(playerid,1329.1317,-1557.6345,13.5469);

SetPlayerInterior(playerid, 0);

WantedWarZone[playerid] = 0;

ResetPlayerWeapons(playerid);

}

}

}

}

[/pawn]

Dute la linia " 10433 " , inlocuieste

[pawn]

new mod;

[/pawn]

cu

[pawn]

new mod1;

[/pawn]

Dupa s-ar putea sa iti dea niste erori, | Undefined "mod" | , te duci la liniile care spune ca are eroare, si inlocuieste "mod" cu "mod1"

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.