SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 08/01/2014, 11:01 AM   #1
Brandon_More
Huge Clucker
 
Brandon_More's Avatar
 
Join Date: Jul 2012
Location: Fife, Scotland, United Kingdom
Posts: 251
Reputation: 30
Default "S@@_OnPlayerCommandText" is not implemented

Changed my command processor from ZCMD to YCMD. I keep getting this error.

Code:
error 004: function "S@@_OnPlayerCommandText" is not implemented
pawn Code:
OnPlayerCommandText(playerid, "/fon");

Also this:
Code:
\pawno\include\YSI\y_commands.inc(2400) : warning 219: local variable "hash" shadows a variable at a preceding level
__________________
Sicilian Mafia Roleplay

Comming soon to the SAMP Community, custom gamemode with unique features. Releasing BETA at 1.0 (Currently at V0.365)

Current features: Furniture | Dynamic house | Accounts | Dynamic Factions | Public Garages | Weapon Drop (Pickup) | Vehicle Ownership
Brandon_More is offline   Reply With Quote
Old 08/01/2014, 11:06 AM   #2
newbie scripter
Gangsta
 
newbie scripter's Avatar
 
Join Date: Apr 2012
Location: Heaven <3
Posts: 798
Reputation: 34
Default Re: "S@@_OnPlayerCommandText" is not implemented

its an callback
it shoudl be like
pawn Code:
OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp("/cmdname", cmdtext, 0))// if he/she typed the cmd
    {
        // what to do.
        return 1;
    }
    return 0; // if he typed an unknown cmd, it say SERVER:Unknown Command.
}
__________________
SUGGESTION FOR FUTURE SA-MP
pawn Code:
forward SetWeaponRange(weaponid, maxrange); // if weapon is fist and 100 range, it may give a warn or super punch xD
forward SetWeaponRecoil(weapoinid, maxrecoil);
newbie scripter is offline   Reply With Quote
Old 08/01/2014, 11:13 AM   #3
amirab
Banned
 
Join Date: Apr 2013
Location: UK maybe :P
Posts: 498
Reputation: 69
Default Re: "S@@_OnPlayerCommandText" is not implemented

WTF !!!!
OnPlayerCommandText(playerid, "/fon");
what's this?!
if your'e using zcmd
your commands should be llike this

CMD:yourcommand(playerid , params[])
{

your code here
return 1;
}
amirab is offline   Reply With Quote
Old 08/01/2014, 11:18 AM   #4
Brandon_More
Huge Clucker
 
Brandon_More's Avatar
 
Join Date: Jul 2012
Location: Fife, Scotland, United Kingdom
Posts: 251
Reputation: 30
Default Re: "S@@_OnPlayerCommandText" is not implemented

Ok, amirab. Thanks for that.

newbie... I am sure there is an easier and more nicer way to lay the commands out. Since it is the most "efficient" command processor.
__________________
Sicilian Mafia Roleplay

Comming soon to the SAMP Community, custom gamemode with unique features. Releasing BETA at 1.0 (Currently at V0.365)

Current features: Furniture | Dynamic house | Accounts | Dynamic Factions | Public Garages | Weapon Drop (Pickup) | Vehicle Ownership
Brandon_More is offline   Reply With Quote
Old 08/01/2014, 11:27 AM   #5
Sublime
High-roller
 
Sublime's Avatar
 
Join Date: Jul 2013
Location: 6ix god
Posts: 992
Reputation: 223
Default Re: "S@@_OnPlayerCommandText" is not implemented

pawn Code:
YCMD:test (playerid, params[], help)
{
     return 1;
}

Why OnPlayerCommandText and put some command in it? Isn't it supposed to be cmdlist[]?
__________________
Quote:
Originally Posted by Zorono View Post
Becuase its the best mod of GTA SA
and itsn't dead, Kalcor is having some proplems on his real life so he is busy now and release the new version now so shut your fucking mouse !!!!!!!!
Sublime is offline   Reply With Quote
Old 08/01/2014, 11:30 AM   #6
newbie scripter
Gangsta
 
newbie scripter's Avatar
 
Join Date: Apr 2012
Location: Heaven <3
Posts: 798
Reputation: 34
Default Re: "S@@_OnPlayerCommandText" is not implemented

nvm i thought u made a mistake in strcmp cmds.
__________________
SUGGESTION FOR FUTURE SA-MP
pawn Code:
forward SetWeaponRange(weaponid, maxrange); // if weapon is fist and 100 range, it may give a warn or super punch xD
forward SetWeaponRecoil(weapoinid, maxrecoil);
newbie scripter is offline   Reply With Quote
Old 08/01/2014, 03:19 PM   #7
Brandon_More
Huge Clucker
 
Brandon_More's Avatar
 
Join Date: Jul 2012
Location: Fife, Scotland, United Kingdom
Posts: 251
Reputation: 30
Default Re: "S@@_OnPlayerCommandText" is not implemented

Fixed
__________________
Sicilian Mafia Roleplay

Comming soon to the SAMP Community, custom gamemode with unique features. Releasing BETA at 1.0 (Currently at V0.365)

Current features: Furniture | Dynamic house | Accounts | Dynamic Factions | Public Garages | Weapon Drop (Pickup) | Vehicle Ownership
Brandon_More is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error "function "PublicLog" is not implemented" ZdupX Scripting Help 3 29/08/2013 09:36 AM
[Ajuda] error 004: function "OnDialogResponse" is not implemented MatheusMendes Português/Portuguese 10 18/05/2013 08:33 PM
Have problem pls help me out... (error 004: function "SetPlayerTeamFromClass" is not implemented) Scrillex Scripting Help 2 24/01/2012 01:43 PM
error 004: function "PlayerToPoint" is not implemented - HELP CaliforniaRP Help Archive 3 04/04/2010 08:13 PM


All times are GMT. The time now is 06:33 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.