Lolkos159 0 Odesláno: 17. Únor, 2014 Share Odesláno: 17. Únor, 2014 Ked ho zapnem na servery a napisem prikaz na port, tak to zhodi server. Neviem preco public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/banka", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Odwarpoval si sa k {FF0000}banke !"); SendClientMessage(playerid, 0xFF0000FF, "[ WARPY ]{00FFFF}Warpy {80FF00} BY LOLKOS !"); SendClientMessageToAll(0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Hráč {00FFFF}%s {00FFFF}sa odwarpoval k {FF0000}banke {80FF00}[ /banka ] !"); SetPlayerPos(playerid, 2190.7668,1993.8146,11.3532); return 1; } if (strcmp("/dragon", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Odwarpoval si sa k {FF0000}Dragon !"); SendClientMessage(playerid, 0xFF0000FF, "[ WARPY ]{00FFFF}Warpy {80FF00} BY LOLKOS !"); SendClientMessageToAll(0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Hráč {00FFFF}%s {00FFFF}sa odwarpoval k {FF0000}dragon baru {80FF00}[ /dragon ] !"); SetPlayerPos(playerid, 2026.7383,1007.6583,10.8203); return 1; } if (strcmp("/bezen", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Odwarpoval si sa k {FF0000}Bazénu !"); SendClientMessage(playerid, 0xFF0000FF, "[ WARPY ]{00FFFF}Warpy {80FF00} BY LOLKOS !"); SendClientMessageToAll(0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Hráč {00FFFF}%s {00FFFF}sa odwarpoval k {FF0000}bazénu {80FF00}[ /bazen ] !"); SetPlayerPos(playerid, 2516.3718,1568.1368,11.5560); return 1; } if (strcmp("/lv", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Odwarpoval si sa do {FF0000}Las Venturas !"); SendClientMessage(playerid, 0xFF0000FF, "[ WARPY ]{00FFFF}Warpy {80FF00} BY LOLKOS !"); SendClientMessageToAll(0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Hráč {00FFFF}%s {00FFFF}sa odwarpoval do {FF0000Las Venturas {80FF00}[ /lv ] !"); SetPlayerPos(playerid, 2100.6201,1227.3776,10.8203); return 1; } if (strcmp("/sf", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Odwarpoval si sa do {FF0000}San Fierra !"); SendClientMessage(playerid, 0xFF0000FF, "[ WARPY ]{00FFFF}Warpy {80FF00} BY LOLKOS !"); SendClientMessageToAll(0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Hráč {00FFFF}%s {00FFFF}sa odwarpoval do {FF0000}San Fierra {80FF00}[ /sf ] !"); SetPlayerPos(playerid, -1808.0762,572.5901,35.1668 ); return 1; } if (strcmp("/wang", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Odwarpoval si sa k {FF0000}Wangu !"); SendClientMessage(playerid, 0xFF0000FF, "[ WARPY ]{00FFFF}Warpy {80FF00} BY LOLKOS !"); SendClientMessageToAll(0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Hráč {00FFFF}%s {00FFFF}sa odwarpoval k {FF0000}Wangu {80FF00}[ /wang ] !"); SetPlayerPos(playerid, -1979.3114,287.8920,35.1719); return 1; } if (strcmp("/ls", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Odwarpoval si sa do {FF0000}Los Santos !"); SendClientMessage(playerid, 0xFF0000FF, "[ WARPY ]{00FFFF}Warpy {80FF00} BY LOLKOS !"); SendClientMessageToAll(0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Hráč {00FFFF}%s {00FFFF}sa odwarpoval do {FF0000}Los Santos {80FF00}[ /ls ] !"); SetPlayerPos(playerid, 2496.0864,-1662.0446,13.3359); return 1; } if (strcmp("/warpy", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0xFF8000FF,"=================================================================================================="); SendClientMessage(playerid,0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Warpy sú vyrobené {FF0000}Lolkosom !"); SendClientMessage(playerid, 0xFF0000FF, "[ WARPY ]{00FFFF}/banka =====> {80FF00} Portne ta k banke !"); SendClientMessage(playerid, 0xFF0000FF,"[ WARPY ]{00FFFF}/dragon =====> {80FF00} Portne ta k dragon baru !"); SendClientMessage(playerid, 0xFF0000FF,"[ WARPY ]{00FFFF}/wang =====> {80FF00} Portne ta k auto predajni WANG !"); SendClientMessage(playerid, 0xFF0000FF,"[ WARPY ]{00FFFF}/lv =====> {80FF00} Portne ta do Las Venturas !"); SendClientMessage(playerid, 0xFF0000FF,"[ WARPY ]{00FFFF}/sf =====> {80FF00} Portne ta do San Fierra !"); SendClientMessage(playerid, 0xFF0000FF,"[ WARPY ]{00FFFF}/bazen =====> {80FF00} Portne ta k bazénu !"); SendClientMessage(playerid, 0xFF0000FF,"[ WARPY ]{00FFFF}/ls =====> {80FF00} Portne ta do Los Santos !"); SendClientMessage(playerid,0xFF8000FF,"=================================================================================================="); return 1; } return 0; } Link to comment Share on other sites More sharing options...
0 kazlik 29 Odesláno: 17. Únor, 2014 Share Odesláno: 17. Únor, 2014 nahoru do módu (pokud nemáš) new string[256];a SendClientMessageToAll(0x00FFFFFF,"{FF0000}[ WARPY ] {00FFFF}Hráč {00FFFF}%s {00FFFF}sa odwarpoval do {FF0000}Los Santos {80FF00}[ /ls ] !");uprav na format(string, sizeof(string), "{FF0000}[ WARPY ] {00FFFF}Hráč {00FFFF}%s {00FFFF}sa odwarpoval do {FF0000}Los Santos {80FF00}[ /ls ] !", PlayerName(playerid)); SendClientMessageToAll(0x00FFFFFF, string); úplně dolů stock PlayerName(playerid) { new name[255]; GetPlayerName(playerid, name, 255); return name; } Link to comment Share on other sites More sharing options...
0 Lolkos159 0 Odesláno: 17. Únor, 2014 Author Share Odesláno: 17. Únor, 2014 kozel a ten format string a toto pri kazdom ? C:\Users\lolkos\Desktop\sssasasa\filterscripts\warps.pwn(135) : warning 204: symbol is assigned a value that is never used: "string" C:\Users\lolkos\Desktop\sssasasa\filterscripts\warps.pwn(247) : error 017: undefined symbol "string" C:\Users\lolkos\Desktop\sssasasa\filterscripts\warps.pwn(247) : error 017: undefined symbol "string" C:\Users\lolkos\Desktop\sssasasa\filterscripts\warps.pwn(247) : error 029: invalid expression, assumed zero C:\Users\lolkos\Desktop\sssasasa\filterscripts\warps.pwn(247) : fatal error 107: too many error messages on one line :DD Link to comment Share on other sites More sharing options...
0 kazlik 29 Odesláno: 18. Únor, 2014 Share Odesláno: 18. Únor, 2014 jo, u každého řádku kde chceš vypsat jméno hráče Link to comment Share on other sites More sharing options...
0 PiratesOfSamp 1 Odesláno: 18. Únor, 2014 Share Odesláno: 18. Únor, 2014 Jo lebo kdiž tam nemáš string ... Tak to musiš napsat jen jako SCM Link to comment Share on other sites More sharing options...
Dotaz
Lolkos159 0
Ked ho zapnem na servery a napisem prikaz na port, tak to zhodi server.
Neviem preco
Link to comment
Share on other sites
4 odpovědí na tuto otázku
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