SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 26/10/2011, 11:43 AM   #21
Ronaldo_raul™
Gangsta
 
Ronaldo_raul™'s Avatar
 
Join Date: Jun 2010
Location: .
Posts: 999
Reputation: 67
Default Re: Groups Script

Quote:
Originally Posted by Cpt.Markus View Post
thanks but it gives me errors :P
Code:
C:\Users\Notis\Desktop\Pawno Works\filterscripts\Group.pwn(56) : error 001: expected token: ")", but found "if"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
pawn Code:
COMMAND:groupcreate(playerid, params[])
{
    if(IsPlayerAdmin(playerid);
    if(group[playerid][gid] != -1) return SendClientMessage(playerid, 0xFF0000, "Leave your group with {FFFFFF}/groupleave{FF0000} before creating a new one!");
    if(strlen(params) > 49 || strlen(params) < 3) return SendClientMessage(playerid, 0xFF0000, "Usage: {FFFFFF}/groupcreate{FF0000} (Group name 3-50 characters)!");
    if(IsGroupTaken(params)) return SendClientMessage(playerid, 0xFF0000, "Group name is already in use!");
    CreateGroup(params, playerid);
    return 1;
}

Try this and works +rep appreciated..!
Ronaldo_raul™ is offline   Reply With Quote
Old 26/10/2011, 11:45 AM   #22
Ronaldo_raul™
Gangsta
 
Ronaldo_raul™'s Avatar
 
Join Date: Jun 2010
Location: .
Posts: 999
Reputation: 67
Default Re: Groups Script

Hey does this save the groups..??
Ronaldo_raul™ is offline   Reply With Quote
Old 26/10/2011, 12:16 PM   #23
Cpt.Markus
Big Clucker
 
Join Date: Aug 2011
Location: Greece
Posts: 95
Reputation: 5
Default Re: Groups Script

thanks rep added xD
Cpt.Markus is offline   Reply With Quote
Old 26/10/2011, 12:18 PM   #24
Cpt.Markus
Big Clucker
 
Join Date: Aug 2011
Location: Greece
Posts: 95
Reputation: 5
Default Re: Groups Script

Code:
C:\Users\Notis\Desktop\Pawno Works\filterscripts\Group.pwn(55) : error 001: expected token: ")", but found ";"
C:\Users\Notis\Desktop\Pawno Works\filterscripts\Group.pwn(55) : error 036: empty statement
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
still got errors :P
Cpt.Markus is offline   Reply With Quote
Old 26/10/2011, 12:59 PM   #25
IstuntmanI
High-roller
 
IstuntmanI's Avatar
 
Join Date: Mar 2009
Location: Romania
Posts: 1,832
Reputation: 375
Default Re: Groups Script

Quote:
Originally Posted by Cpt.Markus View Post
Code:
C:\Users\Notis\Desktop\Pawno Works\filterscripts\Group.pwn(55) : error 001: expected token: ")", but found ";"
C:\Users\Notis\Desktop\Pawno Works\filterscripts\Group.pwn(55) : error 036: empty statement
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
still got errors :P
Change
Code:
COMMAND:groupcreate(playerid, params[])
{
    if(IsPlayerAdmin(playerid);
    if(group[playerid][gid] != -1) return SendClientMessage(playerid, 0xFF0000, "Leave your group with {FFFFFF}/groupleave{FF0000} before creating a new one!");
    if(strlen(params) > 49 || strlen(params) < 3) return SendClientMessage(playerid, 0xFF0000, "Usage: {FFFFFF}/groupcreate{FF0000} (Group name 3-50 characters)!");
    if(IsGroupTaken(params)) return SendClientMessage(playerid, 0xFF0000, "Group name is already in use!");
    CreateGroup(params, playerid);
    return 1;
}
to
Code:
COMMAND:groupcreate( playerid, params[ ] )
{
	if( !IsPlayerAdmin( playerid ) )
		return SendClientMessage( playerid, 0xFF0000FF, "You are not RCON Admin !" );

	if( group[ playerid ][ gid ] != -1 ) 
		return SendClientMessage( playerid, 0xFF0000FF, "Leave your group with {FFFFFF}/groupleave{FF0000} before creating a new one!" );
	
	if( strlen( params ) > 49 || strlen( params ) < 3) 
		return SendClientMessage( playerid, 0xFF0000FF, "Usage: {FFFFFF}/groupcreate{FF0000} (Group name 3-50 characters)!" );
	
	if( IsGroupTaken( params ) ) 
		return SendClientMessage( playerid, 0xFF0000FF, "Group name is already in use!" );
	
	CreateGroup( params, playerid );
	return 1;
}
IstuntmanI is offline   Reply With Quote
Old 26/10/2011, 01:01 PM   #26
Cpt.Markus
Big Clucker
 
Join Date: Aug 2011
Location: Greece
Posts: 95
Reputation: 5
Default Re: Groups Script

thanks rep added xD
Cpt.Markus is offline   Reply With Quote
Old 30/10/2011, 02:01 PM   #27
SpiderWalk
Gangsta
 
SpiderWalk's Avatar
 
Join Date: Apr 2010
Location: Serbia
Posts: 970
Reputation: 26
Default Re: Groups Script

Code:
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(73) : error 017: undefined symbol "isnull"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(94) : error 017: undefined symbol "isnull"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(108) : error 017: undefined symbol "isnull"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(109) : error 017: undefined symbol "isnull"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(126) : error 017: undefined symbol "isnull"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(138) : error 017: undefined symbol "isnull"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(149) : error 017: undefined symbol "isnull"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(150) : error 017: undefined symbol "isnull"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


8 Errors.
WTF?!
SpiderWalk is offline   Reply With Quote
Old 30/10/2011, 07:15 PM   #28
[HiC]TheKiller
High-roller
 
Join Date: Mar 2008
Location: New Zealand
Posts: 2,630
Reputation: 409
Default Re: Groups Script

Quote:
Originally Posted by SpiderWalk View Post
Code:
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(73) : error 017: undefined symbol "isnull"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(94) : error 017: undefined symbol "isnull"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(108) : error 017: undefined symbol "isnull"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(109) : error 017: undefined symbol "isnull"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(126) : error 017: undefined symbol "isnull"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(138) : error 017: undefined symbol "isnull"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(149) : error 017: undefined symbol "isnull"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\groups.pwn(150) : error 017: undefined symbol "isnull"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


8 Errors.
WTF?!
Do you have ZCMD?
__________________
[HiC]TheKiller is offline   Reply With Quote
Old 31/10/2011, 08:35 AM   #29
SpiderWalk
Gangsta
 
SpiderWalk's Avatar
 
Join Date: Apr 2010
Location: Serbia
Posts: 970
Reputation: 26
Default Re: Groups Script

Quote:
Originally Posted by [HiC]TheKiller View Post
Do you have ZCMD?
Yes i have
SpiderWalk is offline   Reply With Quote
Old 31/10/2011, 09:22 AM   #30
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 3,803
Reputation: 1160
Default Re: Groups Script

Quote:
Originally Posted by [HiC]TheKiller View Post
Thanks guys, any suggestions would be great.
Shoot Weponz in the head is one
__________________
Join the best Cops And Robbers in SA-MP, today. svr.sfcnr.com:7777

Lorenc_ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Elite-RP groups davelord Help Archive 2 07/02/2011 01:40 PM
Loading Groups Help The_Gangstas Help Archive 1 25/11/2010 09:47 AM
/groups help. The_Gangstas Help Archive 1 23/11/2010 08:31 PM
Specific groups andrewp Help Archive 5 11/03/2010 11:43 PM


All times are GMT. The time now is 03:01 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.