SA-MP Forums Archive
Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help (/showthread.php?tid=250889)



Help - SpiderWalk - 24.04.2011

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;
    }



Re: Help - Tee - 24.04.2011

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


Re: Help - Seven_of_Nine - 24.04.2011

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);



Re: Help - Tee - 24.04.2011

Yea that one is too. I did not see it.


Re: Help - SpiderWalk - 25.04.2011

Код:
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


Re: Help - SpiderWalk - 25.04.2011

How to fix that errors??!!


Re: Help - SpiderWalk - 25.04.2011

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



Re: Help - SpiderWalk - 25.04.2011

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


Re: Help - SpiderWalk - 25.04.2011

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



Re: Help - SpiderWalk - 25.04.2011

how to fix it??