FAST HELP ME! +1
#1

Код:
new leveluppp = 5*AccountInfo[playerid][Level];
				    new mylvl = leveluppp-1;
				    new levelup = 1+AccountInfo[playerid][Level];
				    new strings[256],string[256];
				    if(AccountInfo[playerid][PremiumPoints] <= mylvl) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!");
				    AccountInfo[playerid][PremiumPoints] -= leveluppp;
					AccountInfo[playerid][Level]++;
					format(string,sizeof(string),"Ai cumparat LevelUP(%d) pentru %d puncte premium.", levelup, leveluppp);
					SCM(COLOR_YELLOW,string,1);
With error:
Код:
argument type mismatch (argument 2
line is:
Код:
SCM(COLOR_YELLOW,string,1);
Reply
#2

Assuming SCM is SendClientMessage,

(playerid, color, string).

What's the 1 for?
Reply
#3

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
Assuming SCM is SendClientMessage,

(playerid, color, string).

What's the 1 for?
Thanks !
And 1 is a mistake.
I'm give you +1 for help!
Reply
#4

The message will appear to you...
PHP код:
SendClientMessage(playerid, -1"This text is white."); 
The message is displayed to everyone...
PHP код:
SendClientMessageToAll(-1"Hello!"); 
If you thought so to all... look

PHP код:
SendClientMessageToAll(COLOR_YELLOWstring); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)