Scripting help :/ - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread:  Scripting help :/ (
/showthread.php?tid=273675)
 
Scripting help :/ - 
Swizzzy -  02.08.2011
Well all i need is a Code of Some simple Roleplay Commands, EG.. /mes and /dos, If you can post the code here i'll be very appreciative, Thank you
Also i need someone to fix this Error for me, I've got all the Includes in the right folders and things.. But i can't identify this
Код:
C:\Users\Parent\Desktop\LuxAdmin 1.7\filterscripts\LuxAdmin.pwn(34) : fatal error 100: cannot read from file: "ldudb"
Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
1 Error.
 
Re: Scripting help :/ - 
grand.Theft.Otto -  02.08.2011
pawn Код:
if(strcmp(cmdtext, "/me", true, 3) == 0)
{
     new pname1[24], string[256];
     GetPlayerName(playerid, pname1, 24);
     format(string, 256, "* %s (%d) %s", pname1, playerid, cmdtext[4]);
     SendClientMessageToAll(GetPlayerColor(playerid), string);
     return 1;
}
 
This is my /me command.
Re: Scripting help :/ - 
Calgon -  02.08.2011
That's not a /me command for a roleplay server, plus that's a mess.
Here are two examples: 
http://forum.sa-mp.com/showpost.php?...61&postcount=4 (/do & /me), you should try looking at other scripts for the commands in those scripts.
Re: Scripting help :/ - 
grand.Theft.Otto -  02.08.2011
I doubt he'll understand that ..
Edit: Saw you have an error, download this and place it in your pawno/includes folder:
http://www.solidfiles.com/d/cf63/
AW: Re: Scripting help :/ - 
samtey -  02.08.2011
Quote:
					Originally Posted by  Calg00ne
 
 
 | 
 He asked for a strcmp command, not for ZCMD command! Well...
@Swizzzy
Try this!
https://sampwiki.blast.hk/wiki/Using_strcmp%28%29
Also, u can change the colors and Messages of your script!!!!
Re: Scripting help :/ - 
Swizzzy -  02.08.2011
I''ve decided to use the LuxAdmin System, But when i try to Compile, The Fs contains all of the files including all the "Includes" But it's still giving me that Error.
Re: AW: Re: Scripting help :/ - 
Calgon -  02.08.2011
Quote:
					Originally Posted by  samtey
 
 
He asked for a strcmp command, not for ZCMD command! Well... 
 | 
 Can you read?
Quote:
					Originally Posted by  Swizzzy
 
 
Well all i need is a Code of Some simple Roleplay Commands, EG.. /mes and /dos, If you can post the code here i'll be very appreciative, Thank you 
Also i need someone to fix this Error for me, I've got all the Includes in the right folders and things.. But i can't identify this
 
Код: 
C:\Users\Parent\Desktop\LuxAdmin 1.7\filterscripts\LuxAdmin.pwn(34) : fatal error 100: cannot read from file: "ldudb"
Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
1 Error. 
  
 | 
 I don't even see a mention of the term "strcmp" in that post.
Re: Scripting help :/ - 
CJ101 -  02.08.2011
Open pawn. Open your gamemode. Try to compile.
Try that ^^
Re: Scripting help :/ - 
Tigerkiller -  02.08.2011
try downloading includes or check if ldudb in your pawn/includes folder
it does not exists so it given that error