#1

I used this command for test and when i type /help server was off

pawn Код:
if (strcmp("/help", cmdtext, true, 10) == 0)
    {
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid,name,MAX_PLAYER_NAME);
        SendClientMessageToAll(0xFFFFFF,"Player %s used command /help");
        ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"{C3FF00FF}General Rocket Party Helping","Welcome to General Rocket Party we are happy for your joing this server.\nThanks very much!!!!!!","Ok","Nice");
        return 1;
    }
Reply
#2

First in SendClientMessageToAll, you have 8 characters for the color, in SA-MP you use 10 So this is what white would look like: 0xFFFFFFFF

Second in dialog you use 6 characters for colors you have "{C3FF00FF}General Rocket Party Helping" take out the last to"FF" so it will look like this: {C3FF00}General Rocket Party Helping

If you use the color picker to choose colors for dialogs you need to take of the "0x" and last 2 "FF" to get the color. So for white in a dialog you would change 0xFFFFFFFF to FFFFFF. Take of the "0x" and the last 2 "FF".
Here is another one for green.

From:0x00FF00FF
To :00FF00
Reply
#3

That is not the matter
pawn Код:
SendClientMessageToAll(0xFFFFFF,"Player %s used command /help");
Aren't you wanna format() this?
pawn Код:
new text[128];
format(text,sizeof(text),"Player %s has used command /help",name);
//and
SendClientMessageToAll(C3FF00,text);
Reply
#4

Yea that one is too. I did not see it.
Reply
#5

Код:
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\GeneralRocketParty.pwn(111) : error 017: undefined symbol "name"
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\GeneralRocketParty.pwn(112) : error 017: undefined symbol "C3FF00"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
This is the errors
Reply
#6

How to fix that errors??!!
Reply
#7

how to fix that error
Код:
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\GeneralRocketParty.pwn(111) : error 017: undefined symbol "name"
Reply
#8

how to fix this
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\GeneralR ocketParty.pwn(111) : error 017: undefined symbol "name"
Reply
#9

Now complain is working and ingame have problem this is in script
http://pokit.etf.ba/get/?0d9c98f79e1...cbe21a3e18.jpg
This is in game
Reply
#10

how to fix it??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)