includes
#1

1. is there a way to make an include like <cmds> for commands

2. if possible can anyone plz tell me a link for tutorial or explain me how??
________
Rudolf uhlenhaut
Reply
#2

I made a topic just like this and yes,

Create a folder called cmds in server directory, Then inside put cmds.txt
Then go on your server, If DCMD Or ZCMD, Put #include "../cmds/cmds.txt" at top of your script,
If cmdtext then put it in OnPlayerCommandText, Try that
Reply
#3

symbol already defined : onplayercommandtext
________
PREGNANT VIDS
Reply
#4

Dont include OnPlayerCommandText in cmds.txt
Reply
#5

if i put that in my include :
if(strcmp(cmdtext,"/test", true) == 0)
{
SendClientMessage(playerid,0xAA3333AA,"hello");
return 1;
}

it gives errors : invalid functions or declarations :S
________
Lovely Wendie
Reply
#6

Hmm.. Lol delete OnPlayerCommandText from your script, And put it in cmds.txt
And then include it at top of you script
Reply
#7

any other way to put both one in GM and one in include
________
Best cheap vaporizers
Reply
#8

Nope as they would conflict
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)