Shadower 0 Odesláno: 10. Srpen, 2011 Share Odesláno: 10. Srpen, 2011 Prosím pomůže mi někdo? Když si dám na server moje FS a pak napišu ten příkaz tak spadne server. PWN Kod: #include public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/klobasy", true) == 0) { SetPlayerHealth(playerid, 100); SendClientMessageToAll(0xDEEE20FF, "Hráč %s Sežral celý vagon klobás"); return 1; } return 0; } Server mám na tomto hostingu: http://nensis-host.hys.cz/ Link to comment Share on other sites More sharing options...
Majitel ffredyk 167 Odesláno: 10. Srpen, 2011 Majitel Share Odesláno: 10. Srpen, 2011 SendClientMessageToAll(0xDEEE20FF, "Hráč %s Sežral celý vagon klobás"); je špatně.... Link to comment Share on other sites More sharing options...
Frajtr 8 Odesláno: 10. Srpen, 2011 Share Odesláno: 10. Srpen, 2011 dej to do formatu s řetězcem Link to comment Share on other sites More sharing options...
-MR.-cobra 0 Odesláno: 10. Srpen, 2011 Share Odesláno: 10. Srpen, 2011 sprav to takto v CommandTexte public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/klobasy", true) == 0) { new str[50]; SetPlayerHealth(playerid, 100); fomat(str,50,"Hráč %s Sežral celý vagon klobás",PlayerName(playerid)); SendClientMessageToAll(0xDEEE20FF, str); return 1; } return 0; } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now