#1

how to thats command to 2 commands example: /newb /n but just this command /newb help me

CMD:newb(playerid, params[]) {
if(gPlayerLogged[playerid] == 0)
return SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");

if(AntiAdv(playerid, params)) return 1;
if((nonewbie) && PlayerInfo[playerid][pAdmin] < 1)
return SendClientMessage(playerid, COLOR_GRAD2, "The newbie chat channel has been disabled by an Admin!");

if(gNewbie[playerid] == 1)
return SendClientMessage(playerid, COLOR_GREY, "You have the channel toggled, /tognewbie to re-enable!");

if(isnull(params))
return SendClientMessage(playerid, COLOR_WHITE, "KULLANIM: (/newb)ie [text]");

if(PlayerInfo[playerid][pNMute] == 1)
return SendClientMessage(playerid, COLOR_GREY, "You're muted from the newbie chat channel.");

new
string[128];

if(NewbieTimer[playerid] > 0) {
format(string, sizeof(string), "You must wait %d seconds before speaking again in this channel.", NewbieTimer[playerid]);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}

if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pHelper] < 1)
NewbieTimer[playerid] = 45;

if(PlayerInfo[playerid][pHelper] == 1)
format(string, sizeof(string), "** Junior Helper %s: %s", GetPlayerNameEx(playerid), params);
else if(PlayerInfo[playerid][pHelper] == 2)
format(string, sizeof(string), "** General Helper %s: %s", GetPlayerNameEx(playerid), params);
else if(PlayerInfo[playerid][pHelper] == 3)
format(string, sizeof(string), "** Senior Helper %s: %s", GetPlayerNameEx(playerid), params);
else if(PlayerInfo[playerid][pHelper] == 4)
format(string, sizeof(string), "** Head Helper %s: %s", GetPlayerNameEx(playerid), params);
else if(PlayerInfo[playerid][pAdmin] < 1)
format(string, sizeof(string), "** Newbie %s: %s", GetPlayerNameEx(playerid), params);
else if(PlayerInfo[playerid][pAdmin] >= 2)
if(AdminDuty[playerid] == 1)
format(string, sizeof(string), "** Admin %s: %s", GetPlayerNameEx(playerid), params);
else
format(string, sizeof(string), "** Newbie %s: %s", GetPlayerNameEx(playerid), params);
else if(PlayerInfo[playerid][pAdmin] == 1)
format(string, sizeof(string), "** Trial Moderator %s: %s", GetPlayerNameEx(playerid), params);

foreach(Player, n) {
if(gNewbie[n] == 0)
SendClientMessageEx(n, COLOR_NEWBIE, string);
}
return 1;
}
Reply
#2

? No clue what you're asking and please put the script inside of PHP or CODE
Reply
#3

I got him , he have a /newb command and he want to make /n for it
example:
/acceptreport and /ar :P
Here's the code

Код:
CMD:n(playerid, params[])
{
  return cmd_newb(playerid, params);
}
Reply
#4

Quote:
Originally Posted by JasonSchneider
Посмотреть сообщение
I got him , he have a /newb command and he want to make /n for it
example:
/acceptreport and /ar :P
Here's the code

Код:
CMD:n(playerid, params[])
{
  return cmd_newb(playerid, params);
}
C:\Users\Administrator\Desktop\samp\gamemodes\VGRP .pwn(10067) : error 017: undefined symbol "cmd_karakterim"
C:\Users\Administrator\Desktop\samp\gamemodes\VGRP .pwn(10069) : error 055: start of function body without function header
C:\Users\Administrator\Desktop\samp\gamemodes\VGRP .pwn(10070) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\samp\gamemodes\VGRP .pwn(10072) : error 021: symbol already defined: "ShowStats"
C:\Users\Administrator\Desktop\samp\gamemodes\VGRP .pwn(10074) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\samp\gamemodes\VGRP .pwn(24307) : error 017: undefined symbol "cmd_newb"
C:\Users\Administrator\Desktop\samp\gamemodes\VGRP .pwn(24309) : warning 225: unreachable code
C:\Users\Administrator\Desktop\samp\gamemodes\VGRP .pwn(24309) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply
#5

Try this

Код:
CMD:n(playerid, params[]){
{
  return cmd_newb(playerid, params);
}
If it didn't work then try this
Код:
CMD:n(playerid, params[])
{
  return cmd_newb(playerid, params);
  return 1;
}
Reply
#6

Код:
CMD:n(playerid, params[])
{
  return cmd_newb(playerid, params);
  return 1;
}
is give 26 errors

Код:
CMD:n(playerid, params[]){
{
  return cmd_newb(playerid, params);
}
is give 1 error

Код:
C:\Users\Administrator\Desktop\samp\gamemodes\VGRP.pwn(24304) : error 017: undefined symbol "cmd_newb"
C:\Users\Administrator\Desktop\samp\gamemodes\VGRP.pwn(24306) : warning 225: unreachable code
C:\Users\Administrator\Desktop\samp\gamemodes\VGRP.pwn(24306) : warning 217: loose indentation
C:\Users\Administrator\Desktop\samp\gamemodes\VGRP.pwn(57878) : warning 217: loose indentation
C:\Users\Administrator\Desktop\samp\gamemodes\VGRP.pwn(57882) : warning 217: loose indentation
C:\Users\Administrator\Desktop\samp\gamemodes\VGRP.pwn(57886) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#7

I'm using it and no errors lol
Reply
#8

Quote:
Originally Posted by JasonSchneider
Посмотреть сообщение
I'm using it and no errors lol
i have zcmd but not working why help me please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)