Dialog
#1

PHP код:
new pDialog[512];
    
strcat(pDialog""COLOR_WHITE"1.{00FF00}/morecmds-{FFFFFF} To see additional commands!\n"sizeof(pDialog));
    
strcat(pDialog""COLOR_WHITE"2.{00FF00}/v [vehiclename]- {FFFFFF} Spawns any vehicle of your choice\n"sizeof(pDialog));
    
strcat(pDialog""COLOR_GREEN"3.{00FF00}/bank- {FFFFFF} to register and use your very own personal bank account\n"sizeof(pDialog));
    
strcat(pDialog""COL0R_GREEN"4.{00FF00} /race-{FFFFFF}to start a race \n"sizeof(pDialog));
    
strcat(pDialog""COLOR_GREEN"5.{00FF00}/Rob [id]{FFFFFF}-Robs a player cash\n"sizeof(pDialog));
    
strcat(pDialog""COLOR_GREEN"6.{00FF00}/Rape [id]{FFFFFF}-Rapes a player\n"sizeof(pDialog));
    
strcat(pDialog""COLOR_GREEN"7.{00FF00}/Hit [id]{FFFFFF}-Places a hit on someone for cash\n"sizeof(pDialog));
    
strcat(pDialog""COLOR_GREEN"8.{00FF00}/minigames{FFFFFF}- You can choose or start your very own event\n"sizeof(pDialog));
    
strcat(pDialog""COLOR_WHITE"9.{00FF00}/weapons{FFFFFF}-Purchase any weapon of your choice\n"sizeof(pDialog));
    
strcat(pDialog""COLOR_GREEN"10.{00FF00}/kill{FFFFFF}- To commit suicide\n"sizeof(pDialog));
    
strcat(pDialog""COLOR_GREEN"11.{00FF00}/vehiclecmds{FFFFFF}-Gives you your very own personal vehicle commands",sizeof(pDialog));
    
ShowPlayerDialog(playerid0DIALOG_STYLE_MSGBOX""COL_BLUE"{FFCC66}Server Commands"pDialog"OK""Cancel"); 
PHP код:
C:\Users\Timeles36\Desktop\Timeless's Unlimited Gaming [0.3z]\gamemodes\TUG.pwn(1484) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Timeles36\Desktop\Timeless'
s Unlimited Gaming [0.3z]\gamemodes\TUG.pwn(1484) : warning 215expression has no effect
C
:\Users\Timeles36\Desktop\Timeless's Unlimited Gaming [0.3z]\gamemodes\TUG.pwn(1484) : error 001: expected token: ";", but found "-string-"
C:\Users\Timeles36\Desktop\Timeless'
s Unlimited Gaming [0.3z]\gamemodes\TUG.pwn(1484) : warning 215expression has no effect
C
:\Users\Timeles36\Desktop\Timeless's Unlimited Gaming [0.3z]\gamemodes\TUG.pwn(1484) : warning 215: expression has no effect
C:\Users\Timeles36\Desktop\Timeless'
s Unlimited Gaming [0.3z]\gamemodes\TUG.pwn(1484) : error 001expected token";"but found ")"
C:\Users\Timeles36\Desktop\Timeless's Unlimited Gaming [0.3z]\gamemodes\TUG.pwn(1484) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase
4 Errors. 
Reply
#2

COLOR_WHITE and COLOR_GREEN are integers. They need to be strings so you can use colour embedding.

pawn Код:
#define COL_WHITE "{FFFFFF}"
#define COL_GREEN "{00FF00}"
And:
replace on your code above with COL_WHITE and COL_GREEN instead.
Reply
#3

[
PHP код:
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase 
Thanks i learnt something this morning +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)