/ck - SOLVED - 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: /ck - SOLVED (
/showthread.php?tid=72475)
/ck - SOLVED -
Castle - 08.04.2009
I made this kinda simple CK system for my GameMode I'm working on
here's the pastebin:
http://pastebin.com/mf225a28
List of my problems:
- When I do /ck request [playerid], it sends the message to the victim. when he types: /ck accept it says "You don't have any Character Kill requests" same on /ck deny - SOLVED
- Sending a message to al player like so: Player_Name was Character Killed by Player_Name I managed to make it work like so - send only the victims message - SOLVED
- I have an Error on the MSG to the Assassin from the Victim if the ck is denied, the error: error 035: argument type mismatch (argument 1) but on /ck accept it works - SOLVED
SOLVED Thanks for the Help Sief_, solved it myself
Re: /ck - problem with Messages & ckStatus -
Castle - 08.04.2009
I kinda fixed the Message problem, I have only a problem only on /ck deny message to the Assassin
heres the command:
http://pastebin.com/mf225a28
the line that gives the error: 59
the error: error 035: argument type mismatch (argument 1)
Re: /ck - problem with Messages & ckStatus -
Castle - 08.04.2009
the thing is that on /ck accept when it sends the Message to All player it writes the Correct name of the Assassin => requester!
so whats the problem?
Re: /ck - problem with Messages & ckStatus -
Castle - 08.04.2009
so the variable ckAssassin should be new ckAssassin[MAX_PLAYERS]; !?
EDIT: tried changing the variable to new ckAssassin[MAX_PLAYERS]; still gives me the error
Re: /ck - problem with Messages & ckStatus -
Castle - 08.04.2009
heres the Command:
http://pastebin.com/mf225a28
the line with the error: 59
all defines are in the "/ck" main
Re: /ck - problem with Messages & ckStatus -
Castle - 09.04.2009
Quote:
Originally Posted by Seif_ [adream-rp.com
]
It has to be a global variable...
And it's:
new ckAssassin[MAX_PLAYERS];
|
Tried making it Global as you suggested still the same error
Re: /ck - problem with the msg of "/ck deny" to the assassin -
Castle - 09.04.2009
Any1 can help, I've updated the problem in first post
Re: /ck - SOLVED -
Castle - 09.04.2009
SOLVED the problems myself, Thanks for the Help Sief_