[help] Small problem
#1

Код:
     if (strcmp(cmd, "/spc", true) == 0)
		{
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, COLOR_WHITE, "USAGE: /spc(Special Person Chat) [playerid/PartOfName] [reason]");
			return 1;
		}
		if (PlayerInfo[playerid][pAge] == 310518 )
		{
			SendClientMessage(playerid, COLOR_YELLOW, " My penis is very Tiny ";
			return 1;
		}
		else
		{
			SendClientMessage(playerid, COLOR_YELLOW, " My penis is really big ";
			return 1;
			}
		}
		return 1;
 }
Whats wrong

(PS: Im actualy trying to make an person able to ajail & ban which should be possible if he got 310518 as age,
But i think i can do that if this is fixed)
Reply
#2

Quote:
Originally Posted by up2u
Посмотреть сообщение
Код:
     if (strcmp(cmd, "/spc", true) == 0)
		{
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, COLOR_WHITE, "USAGE: /spc(Special Person Chat) [playerid/PartOfName] [reason]");
			return 1;
		}
		if (PlayerInfo[playerid][pAge] == 310518 )
		{
			SendClientMessage(playerid, COLOR_YELLOW, " My penis is very Tiny ";
			return 1;
		}
		else
		{
			SendClientMessage(playerid, COLOR_YELLOW, " My penis is really big ";
			return 1;
			}
		}
		return 1;
 }
Whats wrong

(PS: Im actualy trying to make an person able to ajail & ban which should be possible if he got 310518 as age,
But i think i can do that if this is fixed)
You should consider using Zcmd instead.
Reply
#3

Yea.. Hmm...

Well look i got this script from my friend and im trying to learn the basics,
Im trying to do that by making small commands like SendclientmessageALL

But this stuff isn't working, I would appreciate it if you make the Pawno Code for me in the way that will make it work. Than i can look whats different and make other commands based on this.
Reply
#4

Quote:
Originally Posted by up2u
Посмотреть сообщение
Yea.. Hmm...

Well look i got this script from my friend and im trying to learn the basics,
Im trying to do that by making small commands like SendclientmessageALL

But this stuff isn't working, I would appreciate it if you make the Pawno Code for me in the way that will make it work. Than i can look whats different and make other commands based on this.
pawn Код:
command(test, playerid, params[])
{
     new string[128];
     format(string, sizeof(string), "Server : %s", params);
     SendClientMessageToAll(GetPlayerColor(playerid), string);
     return 1;
}
When you type /test something here, then there will be an message sent to all clients connected : Server : something here
Reply
#5

Thanks camel
Reply
#6

Quote:
Originally Posted by up2u
Посмотреть сообщение
Thanks camel
Your'e welcome, tell me if you need any further advice goodluck !
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)