Jump to content

CMD-ul samp-server


Recommended Posts

Salut, introdusem in PAWNO la public OnPlayerConnect cod-ul asta. SendClientMessage(playerid, -1, "Bine ai venit pe server, %s"); si dupa am dat Compilare.

Cand dau pe samp-server si intru pe server. Se da restart automat si samp-server dispare.

La fel, facusem:

#define SCM SendClientMessage

si dupa am introdus SCM(playerid, -1, "Bine ai venit pe server, %s");

Si iar mi s-a intamplat. Imi poate explica ce as putea face?

Link to comment
Share on other sites

Acum 22 minute, Jokerboy a spus:

Salut, introdusem in PAWNO la public OnPlayerConnect cod-ul asta. SendClientMessage(playerid, -1, "Bine ai venit pe server, %s"); si dupa am dat Compilare.

Cand dau pe samp-server si intru pe server. Se da restart automat si samp-server dispare.

La fel, facusem:

#define SCM SendClientMessage

si dupa am introdus SCM(playerid, -1, "Bine ai venit pe server, %s");

Si iar mi s-a intamplat. Imi poate explica ce as putea face?

Pai nu poti trimiti un mesaj formatat deja cu SendClientMessage

foloseste asa

new string[64];
format(string, sizeof string, "Bine ai venit pe server, %s",GetName(playerid));
SendClientMessage(playerid, -1, string);

 

sau daca folosesti y_va fa asa.
va_SendClientMessage(playerid, -1, "Bine ai venit pe server, %s",GetName(playerid));

Da un +1 te rog :D 

  • Like 1
Link to comment
Share on other sites

1 oră în urmă, [El.Capo] a spus:

Pai nu poti trimiti un mesaj formatat deja cu SendClientMessage

foloseste asa

new string[64];
format(string, sizeof string, "Bine ai venit pe server, %s",GetName(playerid));
SendClientMessage(playerid, -1, string);

 

sau daca folosesti y_va fa asa.
va_SendClientMessage(playerid, -1, "Bine ai venit pe server, %s",GetName(playerid));

Da un +1 te rog :D 

Am uitat de string, te pwp mult acum chiar merge

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.