""#DEFINED" + "STRING"
#1

How do I add a defined sentece + a certain word or phrase (string) ?

Example:

Код:
#define MY "Login screen - Gamemode" // I defined that as a phrase

SendClientMessage(playerid, color, "MY + "Hello""); 

// it's like if I'd send "Login - Gamemode Hello");
Reply
#2

pawn Код:
SendClientMessage(playerid, color, MY" Hello");
But i dont think you need that i think you need
https://sampwiki.blast.hk/wiki/Format
Reply
#3

Use format:
pawn Код:
new string[48];
format(string,sizeof(string),"%s Hello",MY);
SendClientMessage(playerid, color, string);
Reply
#4

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
Use format:
pawn Код:
new string[48];
format(string,sizeof(string),"%s Hello",MY);
SendClientMessage(playerid, color, string);
I was too lazy to think about that xd. But I got something similar, Thanks.
Reply
#5

Quote:
Originally Posted by blackwave
Посмотреть сообщение
How do I add a defined sentece + a certain word or phrase (string) ?

Example:

Код:
#define MY "Login screen - Gamemode" // I defined that as a phrase

SendClientMessage(playerid, color, "MY + "Hello""); 

// it's like if I'd send "Login - Gamemode Hello");
But you can do like this:
PHP код:
#define MY "Login screen - Gamemode" // I defined that as a phrase
SendClientMessage(playerid0xFFAABBCC""MY" Hello"); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)