SA-MP Forums Archive
FAST HELP ME! +1 - 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)
+--- Thread: FAST HELP ME! +1 (/showthread.php?tid=646979)



FAST HELP ME! +1 - Longover - 27.12.2017

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



Re: FAST HELP ME! +1 - Kane - 27.12.2017

Assuming SCM is SendClientMessage,

(playerid, color, string).

What's the 1 for?


SOLVED! - Longover - 27.12.2017

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!


Re: FAST HELP ME! +1 - EmpireSk - 27.12.2017

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