need help command
#9

Quote:
Originally Posted by [SaRp
Ryder ]
here
Код:
if(strcmp(cmd,"/bring",true)==0)
		{
			tmp = strtok(cmdtext,idx);

			if(!strlen(tmp)) {
				SendClientMessage(playerid,0xFFFF00AA,"USAGE: /bring [playerid]");
			}

 if(Admin[playerid] >= 1)

		{

				chosenplayer = strval(tmp);

				GetPlayerPos(playerid,xpos[0],ypos[0],zpos[0]);
				SetPlayerPos(chosenplayer,xpos[0]+2,ypos[0]+2,zpos[0]);

				format(string,sizeof(string),"You brought %s to you.",originalplayername[chosenplayer]);
				SendClientMessage(playerid,COLOR_RED,string);
				format(string,sizeof(string),"%s has brought you to him.",originalplayername[playerid]);
				SendClientMessage(chosenplayer,COLOR_RED,string);
				format(string,sizeof(string),"/getin2 %d",playerid);
				OnPlayerCommandText(chosenplayer,string);
			}
		}
tell me what variables you need and i give em to you
if the reg system you use it can save Admin[playerid] then it should be real easy to have this commands on the server
getting errors :
pawn Код:
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\AdminSystem.pwn(26) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\AdminSystem.pwn(28) : error 017: undefined symbol "tmp"
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\AdminSystem.pwn(28) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\AdminSystem.pwn(30) : error 017: undefined symbol "tmp"
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\AdminSystem.pwn(34) : warning 217: loose indentation
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\AdminSystem.pwn(34) : error 017: undefined symbol "Admin"
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\AdminSystem.pwn(34) : warning 215: expression has no effect
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\AdminSystem.pwn(34) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\AdminSystem.pwn(34) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Luc\Bureaublad\Pawno\filterscripts\AdminSystem.pwn(34) : fatal error 107: too many error messages on one line
this
Reply


Messages In This Thread
need help command - by luckie12 - 10.05.2009, 14:55
Re: need help command - by [SaRp]Ryder - 10.05.2009, 15:04
Re: need help command - by MenaceX^ - 10.05.2009, 15:05
Re: need help command - by luckie12 - 10.05.2009, 15:05
Re: need help command - by luckie12 - 10.05.2009, 15:06
Re: need help command - by [SaRp]Ryder - 10.05.2009, 15:09
Re: need help command - by luckie12 - 10.05.2009, 15:10
Re: need help command - by [SaRp]Ryder - 10.05.2009, 15:10
Re: need help command - by luckie12 - 10.05.2009, 15:15
Re: need help command - by [SaRp]Ryder - 10.05.2009, 15:24

Forum Jump:


Users browsing this thread: 1 Guest(s)