23.06.2013, 21:06
Hey, this is my 3 commands.../teleports and /prikazy1 are working but the third one /prikazy2 is not...and i don't know why.
it is showing the error on: if (strcmp(cmdtext, "/prikazy2", true) == 0)
: return 1;
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/teleports", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"{9D0000}Te{FFFFFF}le{9D0000}po{FFFFFF}rt{9D0000}y","{FFFF00}Pershing {FFFFFF}Square\n{FFFF00}Groove {FFFFFF}Street\n{FFFF00}Temple {FFFFFF}Drive\n{FFFF00}Verona {FFFFFF}Beatch\n{FFFF00}Vysoky {FFFFFF}Zoskok","Teleport","Odchod"); return 1; } if (strcmp(cmdtext, "/prikazy1", true) == 0) ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Moderбtor - Prнkazy","Level 1:\n\n/getinfo\n/weaps\n/ping\n/ip\n/fix\n/repair\n/addnos\n/tcar\n/savepleace\n/gotoplace\n/onduty\n/saveskin\n/useskin\n/dontuseskin\n/setmytime\n/adminarea\n/lconfig\n/viplist\n/morning\n/reports\n/richlist\n/miniguns","OK","OK"); return 1; } if (strcmp(cmdtext, "/prikazy2", true) == 0) ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Moderбtor Level 2 - Prнkazy","Level 2:\n\n+Level 1 prнkazy\n\n/giveweapon\n/setcolour\n/burn\n/spawn\n/disarm\n/highlight\n/jetpack\n/flip\n/fu\n/warn\n/slap\n//(un)mute\n/laston\n/lspec\n/lspecoff\n/acar\n/abike\n/aboat\n/aplane\n/lspecvehicle\n/goto\n/vgoto\n/lgoto\n/lmenu\n/clearchat\n/write\n/announce\n/announce2\n/screen\n/(un)lockcar\n/wanted\n/jailed\n/frozen\n/muted\n/fstyles","OK","OK"); return 1;
: return 1;