illegitimate Posted January 11, 2014 Report Share Posted January 11, 2014 [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 declarationPawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase1 Error.Ce sa fac? Link to comment Share on other sites More sharing options...
Ph0eniX Posted January 11, 2014 Report Share Posted January 11, 2014 mai exact care este linia 34477 ? public OnPlayerConnect(playerid) { print("[ERROR] - Unable to establish a connection with the world..."); SendRconCommand("exit"); return 1; } Link to comment Share on other sites More sharing options...
illegitimate Posted January 11, 2014 Author Report Share Posted January 11, 2014 aia cu return false. Link to comment Share on other sites More sharing options...
WaZP Posted January 11, 2014 Report Share Posted January 11, 2014 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 Link to comment Share on other sites More sharing options...
illegitimate Posted January 11, 2014 Author Report Share Posted January 11, 2014 Le-am pus pe toate..nici una nu merge. Link to comment Share on other sites More sharing options...
Ph0eniX Posted January 11, 2014 Report Share Posted January 11, 2014 fara return ce iti spun? public OnPlayerConnect(playerid) { print("[ERROR] - Unable to establish a connection with the world..."); SendRconCommand("exit"); return 1; } Link to comment Share on other sites More sharing options...
illegitimate Posted January 11, 2014 Author Report Share Posted January 11, 2014 imd iti spun.#EDITC:\Users\Lil Z and Corricanne\Desktop\IcePlay Gamemodee\IcePlay\gamemodes\GOGF.pwn(10433) : warning 219: local variable "mod" shadows a variable at a preceding levelC:\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 CompuPhase1 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 More sharing options...
Massari Posted January 11, 2014 Report Share Posted January 11, 2014 [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] rimmon curv. Link to comment Share on other sites More sharing options...
illegitimate Posted January 11, 2014 Author Report Share Posted January 11, 2014 [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 levelC:\Users\Lil Z and Corricanne\Desktop\IcePlay Gamemodee\IcePlay\gamemodes\GOGF.pwn(34456) : warning 217: loose indentationC:\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 CompuPhase1 Error. Link to comment Share on other sites More sharing options...
WaZP Posted January 11, 2014 Report Share Posted January 11, 2014 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 More sharing options...
illegitimate Posted January 11, 2014 Author Report Share Posted January 11, 2014 Rezolvat,multumesc frumos WazP si restul. Link to comment Share on other sites More sharing options...
Question
illegitimate
[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