Need help with OnPlayerCommandText
#1

Whazzup?
I need help with this:
pawn Код:
if(listitem == 3)
{
    OnPlayerCommandText(playerid, "/Animlist");
}
See? I want that if the Player will choose a List item, It will return a Command... This example dont work
How to do it?
Reply
#2

https://sampwiki.blast.hk/wiki/CallRemoteFunction

It would be possible in another way, but you have to use a command processor, and I'm highly recommending you to download one (Best Y_CMD) and use it instead of strcmp!
Reply
#3

Cant Understand how to use it with commands, and how to use Strcmp, i mean i need to do it with strcmp, For Another Mod! (not mine!)
Reply
#4

What happens when you choose the specified list item?
Does it say "Server: Unknown command"?
Reply
#5

No, it doesnt doing anything
Reply
#6

Can sOmeone pls help?? I need to fimish a script then tommorow!!!!
Reply
#7

Why don't you put the code from the command in that list item? This is a temporary solution. So you have time to figure out how it works.

I also suggest you place the command without capital letters, as strcmp might be configured to exactly match the string in OnPlayerCommandText.
Reply
#8

Thx i guess, The problrm is that i domt have these commands, Im just side-scripter... I need that when they choose a list item it will return a command
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)