error 017: undefined symbol "dcmd_ta" - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 017: undefined symbol "dcmd_ta" (
/showthread.php?tid=544307)
error 017: undefined symbol "dcmd_ta" -
Kruno88 - 01.11.2014
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(changepass,10,cmdtext);
dcmd(eloading,8,cmdtext);
dcmd(dloading,8,cmdtext);
dcmd_ta(playerid, params[]) //This
{
if(pInfo[playerid][Drugz] == 1)
{
return 0;
}
}
return 0;
}
Any help? :P
Re: error 017: undefined symbol "dcmd_ta" -
AzaMx - 01.11.2014
maybe here??
pawn Код:
dcmd_ta(playerid, params[]) //This
{
if(pInfo[playerid][Drugz] == 1)
{
//maybe you should put something here?
}
return 0;
}
Re: error 017: undefined symbol "dcmd_ta" -
Kruno88 - 01.11.2014
Still the same problem
Re: error 017: undefined symbol "dcmd_ta" -
Glossy42O - 01.11.2014
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(changepass,10,cmdtext);
dcmd(eloading,8,cmdtext);
dcmd(dloading,8,cmdtext);
}
dcmd_ta(playerid, params[]) //This
{
if(pInfo[playerid][Drugz] == 1)
{
return 0;
}
}
return 0;
}
Re: error 017: undefined symbol "dcmd_ta" -
xMx4LiFe - 01.11.2014
u have to #define dcmd_ta
if i help u plz rep+
Re: error 017: undefined symbol "dcmd_ta" -
Stinged - 01.11.2014
No...
Remove it from OnPlayerCommandText
And add it outside of all callbacks..
Re: error 017: undefined symbol "dcmd_ta" -
AdHaM612 - 01.11.2014
Remove it from OnPlayerCommandText then add dcmd(ta,2,cmdtext); under OnPlayerCommandText.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(changepass,10,cmdtext);
dcmd(eloading,8,cmdtext);
dcmd(dloading,8,cmdtext);
dcmd(ta,2,cmdtext); // Add This Here
return 0;
}
dcmd_ta(playerid, params[])
{
if(pInfo[playerid][Drugz] == 1)
{
return 0;
}
}