SA-MP Forums Archive
[Include] clan.inc -> Easy-to-use, plug-n-play clan system - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] clan.inc -> Easy-to-use, plug-n-play clan system (/showthread.php?tid=337705)

Pages: 1 2


Re: clan.inc -> Easy-to-use, plug-n-play clan system - fiki574 - 06.05.2012

Quote:
Originally Posted by Anonym2009
Посмотреть сообщение
Getting Error: include\clan.inc(169) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

pawn Код:
COMMAND:remplayer(playerid,params[])
{
     new target;
     if(!sscanf(params, "u", target))
     {
          Here-> RemovePlayerFromClan(playerid, target);
          return 1;
     }
     else SendClientMessage(playerid,-1,"USAGE: /remplayer <playerid>");
     return 1;
}
Thanks for reporting this! Please check my first post, there is a fix for this error/bug!


Re: clan.inc -> Easy-to-use, plug-n-play clan system - nGen.SoNNy - 06.05.2012

Idea: Add something like gang leader\member skin and color of the name...

EDIT: change weap2 to weap3 :P
pawn Код:
new clanquery3[100];
    new give_weap3[10];
    format(clanquery3, sizeof(clanquery3), "SELECT weap2 FROM clans WHERE clanname = '%s'",      GetPlayerClan(playerid));
    mysql_query(clanquery3);
    mysql_store_result();
    mysql_fetch_row(give_weap3);
    mysql_free_result();



Re: clan.inc -> Easy-to-use, plug-n-play clan system - fiki574 - 07.05.2012

Quote:
Originally Posted by Anonym2009
Посмотреть сообщение
Idea: Add something like gang leader\member skin and color of the name...

EDIT: change weap2 to weap3 :P
pawn Код:
new clanquery3[100];
    new give_weap3[10];
    format(clanquery3, sizeof(clanquery3), "SELECT weap2 FROM clans WHERE clanname = '%s'",      GetPlayerClan(playerid));
    mysql_query(clanquery3);
    mysql_store_result();
    mysql_fetch_row(give_weap3);
    mysql_free_result();
Sure, will add skins and colors to next version! Also, thanks for reporting that weap bug, fixed the Pastebin version!


Re: clan.inc -> Easy-to-use, plug-n-play clan system - nGen.SoNNy - 07.05.2012

Add me to helpers if you want)

In your post Replace SendClientMessage(playerid,-1,"USAGE: /cclan <clan-name> <clan-tag> <clan-pass> <weap1> <weap2> <weap3> to SendClientMessage(playerid,-1,"USAGE: /cclan <clan-name> <clan-tag> <clan-pass> <weap1> <weap2> <weap3>");
pawn Код:
COMMAND:cclan(playerid,params[])
{
     new cname[30], ctag[30], cpass[30], cw1, cw2, cw3;
     if(!sscanf(params, "s[30]s[30]s[30]iii", cname, ctag, cpass, cw1, cw2, cw3))
     {
          CreateClan(playerid, cname, ctag, cpass, "", "", cw1, cw2, cw3);
          return 1;
     }
     else SendClientMessage(playerid,-1,"USAGE: /cclan <clan-name> <clan-tag> <clan-pass> <weap1> <weap2> <weap3>
     return 1;
}



Re: clan.inc -> Easy-to-use, plug-n-play clan system - fiki574 - 07.05.2012

Quote:
Originally Posted by Anonym2009
Посмотреть сообщение
Add me to helpers if you want)
Can you help me to create /invite /accept & /deny ?

In your post Replace SendClientMessage(playerid,-1,"USAGE: /cclan <clan-name> <clan-tag> <clan-pass> <weap1> <weap2> <weap3> to SendClientMessage(playerid,-1,"USAGE: /cclan <clan-name> <clan-tag> <clan-pass> <weap1> <weap2> <weap3>");
pawn Код:
COMMAND:cclan(playerid,params[])
{
     new cname[30], ctag[30], cpass[30], cw1, cw2, cw3;
     if(!sscanf(params, "s[30]s[30]s[30]iii", cname, ctag, cpass, cw1, cw2, cw3))
     {
          CreateClan(playerid, cname, ctag, cpass, "", "", cw1, cw2, cw3);
          return 1;
     }
     else SendClientMessage(playerid,-1,"USAGE: /cclan <clan-name> <clan-tag> <clan-pass> <weap1> <weap2> <weap3>
     return 1;
}
Oh lol, thank you man, I am so stupid!
Added you to credits, and gave you some rep!


Re: clan.inc -> Easy-to-use, plug-n-play clan system - varga - 10.05.2012

I use #include <clan> and my PAWN script crashes why


Re: clan.inc -> Easy-to-use, plug-n-play clan system - fiki574 - 11.05.2012

Quote:
Originally Posted by varga
Посмотреть сообщение
I use #include <clan> and my PAWN script crashes why
Yet again you did something wrong! :O


Re: clan.inc -> Easy-to-use, plug-n-play clan system - varga - 11.05.2012

i did everithing and tried it with a new gm too but the same my PAWN crashes


Re: clan.inc -> Easy-to-use, plug-n-play clan system - RandomDude - 16.04.2013

You could also change add the player to clan like a invitation to the clan like
Quote:

COMMAND:cinvite




Re: clan.inc -> Easy-to-use, plug-n-play clan system - fiki574 - 17.04.2013

Quote:
Originally Posted by Ronaldo_raul™
View Post
GRRRRRRRRRR! I am waiting since your last post saying you would update it!
GRRRRRooooooaaar! e.e!
Soz hehe!

Quote:
Originally Posted by RandomDude
View Post
This is awesome I MIGHT make a clan script with this and release it
Sure, just keep the credits!

Quote:
Originally Posted by RandomDude
View Post
You could also change add the player to clan like a invitation to the clan like
You can easily do it in your FS by yourself!


Re: clan.inc -> Easy-to-use, plug-n-play clan system - fiki574 - 17.04.2013

VERSION 1.4 IS HERE! NEW FEATURES AND IMPROVEMENTS!

Please redownload!



Re: clan.inc -> Easy-to-use, plug-n-play clan system - sith123 - 17.04.2013

Thanks for sharing .
+1 Rep
I will try it soon .



Re: clan.inc -> Easy-to-use, plug-n-play clan system - WotusPower - 18.04.2013

Se fizesse em strcmp, eu pensaria no rep


Re: clan.inc -> Easy-to-use, plug-n-play clan system - fiki574 - 18.04.2013

Quote:
Originally Posted by WotusPower
Посмотреть сообщение
Se fizesse em strcmp, eu pensaria no rep
English please!


Re: clan.inc -> Easy-to-use, plug-n-play clan system - ProShooter22 - 30.04.2013

clan.inc(52) : warning 217: loose indentation
warning 217: loose indentation


pls help


Re: clan.inc -> Easy-to-use, plug-n-play clan system - Javed_Ahmadzai - 02.06.2013

plz put media fire or any other download link with plugins pastebin not working


Re: clan.inc -> Easy-to-use, plug-n-play clan system - fiki574 - 02.06.2013

Quote:
Originally Posted by Javed_Ahmadzai
View Post
plz put media fire or any other download link with plugins pastebin not working
It should work :O


Re: clan.inc -> Easy-to-use, plug-n-play clan system - Ronaldo_raul™ - 19.06.2013

Quote:
Originally Posted by fiki574
View Post
It should work :O
Pastebin is blocked in India.


Add another link please.


Re: clan.inc -> Easy-to-use, plug-n-play clan system - fiki574 - 25.12.2015

Quote:
Originally Posted by Leopards
Посмотреть сообщение
i tried but commands and when i try to login to server it will say register and when i register than nothing happen
It's pretty outdated, so you need to do few tweaks to make it actually work.