Jump to content
  • 0

error 010: invalid function or declaration [ problema]


illegitimate

Question

[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?

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

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]

Link to comment
Share on other sites

[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.

Link to comment
Share on other sites

[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.

Link to comment
Share on other sites

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"

Link to comment
Share on other sites

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.