Jump to content
  • 0

iar o problema:(


xxSPEEDYxx

Question

Deci...miam pus asta de pe GM-ul Drift Universe fakt de rock:

cmd = strtok(cmdtext, idx);

if(!strcmp(cmdtext, "/cmds", true))

{

new string[700], sL[600], sI[600], sU[500], sQ[500], sT[128], sR[600], sE[70];

format(sL, sizeof(sL), "{FDFF66}/flip /healme /credits /rules /cc /count");

format(sI, sizeof(sI), "{FDFF66}/godon /godoff /skin <id> /vcontrol /godlist");

    format(sU, sizeof(sU), "{FDFF66}/godcar /cash /culori /zi /noapte /nrg /fix");

    format(sQ, sizeof(sQ), "{FDFF66}/bug /sugestie /savep /loadp /sprunk /beer /smoke");

    format(sT, sizeof(sT), "{FDFF66}/rampages /pgoto <id> /vcmds /cmds /ponline");

    format(sE, sizeof(sE), "{FDFF66}/vup /vupoff /speedo");

    format(sR, sizeof(sR), "Apasa {FC0303}2 {FDFF66}pentru a repara masina si apasa {FC0303}CLICK {FDFF66}pentru a adauga nitro!");

format(string, sizeof(string),"{FF0202}->/car [name]{EFED7A} foloseste {FF0202}/car [name]{EFED7A} pentru a lua masina dorita\n{FF0202}->/teles{EFED7A} foloseste {FF0202}/teles {EFED7A}pentru a vedea toate teleporturile \n{FF0202}->/vcontrol{EFED7A} foloseste {FF0202}/vcontrol {EFED7A}pentru a accesa Vehicle Control\n\n\n%s\n%s\n%s\n%s\n%s\n%s\n\n\n%s",sL,sI,sU,sQ,sT,sE,sR);

    return ShowPlayerDialog(playerid, 1010, 0, "General Commands", string, "Ok", "Cancel");

    }

Cand ii dau copile apare asta:

C:\Documents and Settings\user\My Documents\Servere de samp\Server&maps,filterscripts\RDU\RO.pwn(1157) : warning 219: local variable "string" shadows a variable at a preceding level

C:\Documents and Settings\user\My Documents\Servere de samp\Server&maps,filterscripts\RDU\RO.pwn(2491) : warning 219: local variable "string" shadows a variable at a preceding level

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size:          7112 bytes

Code size:          523576 bytes

Data size:          1072040 bytes

Stack/heap size:      16384 bytes; estimated max. usage=5352 cells (21408 bytes)

Total requirements: 1619112 bytes

2 Warnings.

Cand itru in joc tatez sa zicem /aa sau orice alta comanda imi scrie USE:/sex [id] [amout]

PLSSS HELP DIN NOU!

Fara reclama in semnatura!

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

Nu e nimik grav sunt doar niste warninguri poti folosi linistit gm...

Mda foloseste

SendClientMesage pentru message client

adik

SendClientMessage(playerid,color,"Message"); //color cauti si tu ...sau uitele aici

si la ShowPlayerDialog e mai usor ..

ca sa faci o noua linie la dialog faci asa

\nMessaj

exp

ShowPlayerDialog(playerid,dialogid,DIALOG_STYLE_MSGBOX,"Mesaj"Mesaj \nMesaj nou \n-Multumim ca ati citit aceasta","buton1","buton2");

#define COLOR_ACTIVEBORDER 0xB4B4B4FF
#define COLOR_ACTIVECAPTION 0x99B4D1FF
#define COLOR_ACTIVECAPTIONTEXT 0x000000FF
#define COLOR_APPWORKSPACE 0xABABABFF
#define COLOR_CONTROL 0xF0F0F0FF
#define COLOR_CONTROLDARK 0xA0A0A0FF
#define COLOR_CONTROLDARKDARK 0x696969FF
#define COLOR_CONTROLLIGHT 0xE3E3E3FF
#define COLOR_CONTROLLIGHTLIGHT 0xFFFFFFFF
#define COLOR_CONTROLTEXT 0x000000FF
#define COLOR_DESKTOP 0x000000FF
#define COLOR_GRAYTEXT 0x808080FF
#define COLOR_HIGHLIGHT 0x3399FFFF
#define COLOR_HIGHLIGHTTEXT 0xFFFFFFFF
#define COLOR_HOTTRACK 0x0066CCFF
#define COLOR_INACTIVEBORDER 0xF4F7FCFF
#define COLOR_INACTIVECAPTION 0xBFCDDBFF
#define COLOR_INACTIVECAPTIONTEXT 0x434E54FF
#define COLOR_INFO 0xFFFFE1FF
#define COLOR_INFOTEXT 0x000000FF
#define COLOR_MENU 0xF0F0F0FF
#define COLOR_MENUTEXT 0x000000FF
#define COLOR_SCROLLBAR 0xC8C8C8FF
#define COLOR_WINDOW 0xFFFFFFFF
#define COLOR_WINDOWFRAME 0x646464FF
#define COLOR_WINDOWTEXT 0x000000FF
#define COLOR_TRANSPARENT 0xFFFFFF00
#define COLOR_ALICEBLUE 0xF0F8FFFF
#define COLOR_ANTIQUEWHITE 0xFAEBD7FF
#define COLOR_AQUA 0x00FFFFFF
#define COLOR_AQUAMARINE 0x7FFFD4FF
#define COLOR_AZURE 0xF0FFFFFF
#define COLOR_BEIGE 0xF5F5DCFF
#define COLOR_BISQUE 0xFFE4C4FF
#define COLOR_BLACK 0x000000FF
#define COLOR_BLANCHEDALMOND 0xFFEBCDFF
#define COLOR_BLUE 0x0000FFFF
#define COLOR_BLUEVIOLET 0x8A2BE2FF
#define COLOR_BROWN 0xA52A2AFF
#define COLOR_BURLYWOOD 0xDEB887FF
#define COLOR_CADETBLUE 0x5F9EA0FF
#define COLOR_CHARTREUSE 0x7FFF00FF
#define COLOR_CHOCOLATE 0xD2691EFF
#define COLOR_CORAL 0xFF7F50FF
#define COLOR_CORNFLOWERBLUE 0x6495EDFF
#define COLOR_CORNSILK 0xFFF8DCFF
#define COLOR_CRIMSON 0xDC143CFF
#define COLOR_CYAN 0x00FFFFFF
#define COLOR_DARKBLUE 0x00008BFF
#define COLOR_DARKCYAN 0x008B8BFF
#define COLOR_DARKGOLDENROD 0xB8860BFF
#define COLOR_DARKGRAY 0xA9A9A9FF
#define COLOR_DARKGREEN 0x006400FF
#define COLOR_DARKKHAKI 0xBDB76BFF
#define COLOR_DARKMAGENTA 0x8B008BFF
#define COLOR_DARKOLIVEGREEN 0x556B2FFF
#define COLOR_DARKORANGE 0xFF8C00FF
#define COLOR_DARKORCHID 0x9932CCFF
#define COLOR_DARKRED 0x8B0000FF
#define COLOR_DARKSALMON 0xE9967AFF
#define COLOR_DARKSEAGREEN 0x8FBC8BFF
#define COLOR_DARKSLATEBLUE 0x483D8BFF
#define COLOR_DARKSLATEGRAY 0x2F4F4FFF
#define COLOR_DARKTURQUOISE 0x00CED1FF
#define COLOR_DARKVIOLET 0x9400D3FF
#define COLOR_DEEPPINK 0xFF1493FF
#define COLOR_DEEPSKYBLUE 0x00BFFFFF
#define COLOR_DIMGRAY 0x696969FF
#define COLOR_DODGERBLUE 0x1E90FFFF
#define COLOR_FIREBRICK 0xB22222FF
#define COLOR_FLORALWHITE 0xFFFAF0FF
#define COLOR_FORESTGREEN 0x228B22FF
#define COLOR_FUCHSIA 0xFF00FFFF
#define COLOR_GAINSBORO 0xDCDCDCFF
#define COLOR_GHOSTWHITE 0xF8F8FFFF
#define COLOR_GOLD 0xFFD700FF
#define COLOR_GOLDENROD 0xDAA520FF
#define COLOR_GRAY 0x808080FF
#define COLOR_GREEN 0x008000FF
#define COLOR_GREENYELLOW 0xADFF2FFF
#define COLOR_HONEYDEW 0xF0FFF0FF
#define COLOR_HOTPINK 0xFF69B4FF
#define COLOR_INDIANRED 0xCD5C5CFF
#define COLOR_INDIGO 0x4B0082FF
#define COLOR_IVORY 0xFFFFF0FF
#define COLOR_KHAKI 0xF0E68CFF
#define COLOR_LAVENDER 0xE6E6FAFF
#define COLOR_LAVENDERBLUSH 0xFFF0F5FF
#define COLOR_LAWNGREEN 0x7CFC00FF
#define COLOR_LEMONCHIFFON 0xFFFACDFF
#define COLOR_LIGHTBLUE 0xADD8E6FF
#define COLOR_LIGHTCORAL 0xF08080FF
#define COLOR_LIGHTCYAN 0xE0FFFFFF
#define COLOR_LIGHTGOLDENRODYELLOW 0xFAFAD2FF
#define COLOR_LIGHTGRAY 0xD3D3D3FF
#define COLOR_LIGHTGREEN 0x90EE90FF
#define COLOR_LIGHTPINK 0xFFB6C1FF
#define COLOR_LIGHTSALMON 0xFFA07AFF
#define COLOR_LIGHTSEAGREEN 0x20B2AAFF
#define COLOR_LIGHTSKYBLUE 0x87CEFAFF
#define COLOR_LIGHTSLATEGRAY 0x778899FF
#define COLOR_LIGHTSTEELBLUE 0xB0C4DEFF
#define COLOR_LIGHTYELLOW 0xFFFFE0FF
#define COLOR_LIME 0x00FF00FF
#define COLOR_LIMEGREEN 0x32CD32FF
#define COLOR_LINEN 0xFAF0E6FF
#define COLOR_MAGENTA 0xFF00FFFF
#define COLOR_MAROON 0x800000FF
#define COLOR_MEDIUMAQUAMARINE 0x66CDAAFF
#define COLOR_MEDIUMBLUE 0x0000CDFF
#define COLOR_MEDIUMORCHID 0xBA55D3FF
#define COLOR_MEDIUMPURPLE 0x9370DBFF
#define COLOR_MEDIUMSEAGREEN 0x3CB371FF
#define COLOR_MEDIUMSLATEBLUE 0x7B68EEFF
#define COLOR_MEDIUMSPRINGGREEN 0x00FA9AFF
#define COLOR_MEDIUMTURQUOISE 0x48D1CCFF
#define COLOR_MEDIUMVIOLETRED 0xC71585FF
#define COLOR_MIDNIGHTBLUE 0x191970FF
#define COLOR_MINTCREAM 0xF5FFFAFF
#define COLOR_MISTYROSE 0xFFE4E1FF
#define COLOR_MOCCASIN 0xFFE4B5FF
#define COLOR_NAVAJOWHITE 0xFFDEADFF
#define COLOR_NAVY 0x000080FF
#define COLOR_OLDLACE 0xFDF5E6FF
#define COLOR_OLIVE 0x808000FF
#define COLOR_OLIVEDRAB 0x6B8E23FF
#define COLOR_ORANGE 0xFFA500FF
#define COLOR_ORANGERED 0xFF4500FF
#define COLOR_ORCHID 0xDA70D6FF
#define COLOR_PALEGOLDENROD 0xEEE8AAFF
#define COLOR_PALEGREEN 0x98FB98FF
#define COLOR_PALETURQUOISE 0xAFEEEEFF
#define COLOR_PALEVIOLETRED 0xDB7093FF
#define COLOR_PAPAYAWHIP 0xFFEFD5FF
#define COLOR_PEACHPUFF 0xFFDAB9FF
#define COLOR_PERU 0xCD853FFF
#define COLOR_PINK 0xFFC0CBFF
#define COLOR_PLUM 0xDDA0DDFF
#define COLOR_POWDERBLUE 0xB0E0E6FF
#define COLOR_PURPLE 0x800080FF
#define COLOR_RED 0xFF0000FF
#define COLOR_ROSYBROWN 0xBC8F8FFF
#define COLOR_ROYALBLUE 0x4169E1FF
#define COLOR_SADDLEBROWN 0x8B4513FF
#define COLOR_SALMON 0xFA8072FF
#define COLOR_SANDYBROWN 0xF4A460FF
#define COLOR_SEAGREEN 0x2E8B57FF
#define COLOR_SEASHELL 0xFFF5EEFF
#define COLOR_SIENNA 0xA0522DFF
#define COLOR_SILVER 0xC0C0C0FF
#define COLOR_SKYBLUE 0x87CEEBFF
#define COLOR_SLATEBLUE 0x6A5ACDFF
#define COLOR_SLATEGRAY 0x708090FF
#define COLOR_SNOW 0xFFFAFAFF
#define COLOR_SPRINGGREEN 0x00FF7FFF
#define COLOR_STEELBLUE 0x4682B4FF
#define COLOR_TAN 0xD2B48CFF
#define COLOR_TEAL 0x008080FF
#define COLOR_THISTLE 0xD8BFD8FF
#define COLOR_TOMATO 0xFF6347FF
#define COLOR_TURQUOISE 0x40E0D0FF
#define COLOR_VIOLET 0xEE82EEFF
#define COLOR_WHEAT 0xF5DEB3FF
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_WHITESMOKE 0xF5F5F5FF
#define COLOR_YELLOW 0xFFFF00FF
#define COLOR_YELLOWGREEN 0x9ACD32FF
#define COLOR_BUTTONFACE 0xF0F0F0FF
#define COLOR_BUTTONHIGHLIGHT 0xFFFFFFFF
#define COLOR_BUTTONSHADOW 0xA0A0A0FF
#define COLOR_GRADIENTACTIVECAPTION 0xB9D1EAFF
#define COLOR_GRADIENTINACTIVECAPTION 0xD7E4F2FF
#define COLOR_MENUBAR 0xF0F0F0FF
#define COLOR_MENUHIGHLIGHT 0x3399FFFF

// (FF)TeddyBear
#define COLOR_TEDDY 0x8A946BFF 

// System Defined Colors
#define COLOR_ACTIVEBORDER 0xB4B4B4FF
#define COLOR_ACTIVECAPTION 0x99B4D1FF
#define COLOR_ACTIVECAPTIONTEXT 0x000000FF
#define COLOR_ALICEBLUE 0xF0F8FFFF
#define COLOR_ANTIQUEWHITE 0xFAEBD7FF
#define COLOR_APPWORKSPACE 0xABABABFF
#define COLOR_AQUA 0x00FFFFFF
#define COLOR_AQUAMARINE 0x7FFFD4FF
#define COLOR_AZURE 0xF0FFFFFF
#define COLOR_BEIGE 0xF5F5DCFF
#define COLOR_BISQUE 0xFFE4C4FF
#define COLOR_BLACK 0x000000FF
#define COLOR_BLANCHEDALMOND 0xFFEBCDFF
#define COLOR_BLUE 0x0000FFFF
#define COLOR_BLUEVIOLET 0x8A2BE2FF
#define COLOR_BROWN 0xA52A2AFF
#define COLOR_BURLYWOOD 0xDEB887FF
#define COLOR_BUTTONFACE 0xF0F0F0FF
#define COLOR_BUTTONHIGHLIGHT 0xFFFFFFFF
#define COLOR_BUTTONSHADOW 0xA0A0A0FF
#define COLOR_CADETBLUE 0x5F9EA0FF
#define COLOR_CHARTREUSE 0x7FFF00FF
#define COLOR_CHOCOLATE 0xD2691EFF
#define COLOR_CONTROL 0xF0F0F0FF
#define COLOR_CONTROLDARK 0xA0A0A0FF
#define COLOR_CONTROLDARKDARK 0x696969FF
#define COLOR_CONTROLLIGHT 0xE3E3E3FF
#define COLOR_CONTROLLIGHTLIGHT 0xFFFFFFFF
#define COLOR_CONTROLTEXT 0x000000FF
#define COLOR_CORAL 0xFF7F50FF
#define COLOR_CORNFLOWERBLUE 0x6495EDFF
#define COLOR_CORNSILK 0xFFF8DCFF
#define COLOR_CRIMSON 0xDC143CFF
#define COLOR_CYAN 0x00FFFFFF
#define COLOR_DARKBLUE 0x00008BFF
#define COLOR_DARKCYAN 0x008B8BFF
#define COLOR_DARKGOLDENROD 0xB8860BFF
#define COLOR_DARKGRAY 0xA9A9A9FF
#define COLOR_DARKGREEN 0x006400FF
#define COLOR_DARKKHAKI 0xBDB76BFF
#define COLOR_DARKMAGENTA 0x8B008BFF
#define COLOR_DARKOLIVEGREEN 0x556B2FFF
#define COLOR_DARKORANGE 0xFF8C00FF
#define COLOR_DARKORCHID 0x9932CCFF
#define COLOR_DARKRED 0x8B0000FF
#define COLOR_DARKSALMON 0xE9967AFF
#define COLOR_DARKSEAGREEN 0x8FBC8BFF
#define COLOR_DARKSLATEBLUE 0x483D8BFF
#define COLOR_DARKSLATEGRAY 0x2F4F4FFF
#define COLOR_DARKTURQUOISE 0x00CED1FF
#define COLOR_DARKVIOLET 0x9400D3FF
#define COLOR_DEEPPINK 0xFF1493FF
#define COLOR_DEEPSKYBLUE 0x00BFFFFF
#define COLOR_DESKTOP 0x000000FF
#define COLOR_DIMGRAY 0x696969FF
#define COLOR_DODGERBLUE 0x1E90FFFF
#define COLOR_FIREBRICK 0xB22222FF
#define COLOR_FLORALWHITE 0xFFFAF0FF
#define COLOR_FORESTGREEN 0x228B22FF
#define COLOR_FUCHSIA 0xFF00FFFF
#define COLOR_GAINSBORO 0xDCDCDCFF
#define COLOR_GHOSTWHITE 0xF8F8FFFF
#define COLOR_GOLD 0xFFD700FF
#define COLOR_GOLDENROD 0xDAA520FF
#define COLOR_GRADIENTACTIVECAPTION 0xB9D1EAFF
#define COLOR_GRADIENTINACTIVECAPTION 0xD7E4F2FF
#define COLOR_GRAY 0x808080FF
#define COLOR_GRAYTEXT 0x808080FF
#define COLOR_GREEN 0x008000FF
#define COLOR_GREENYELLOW 0xADFF2FFF
#define COLOR_HIGHLIGHT 0x3399FFFF
#define COLOR_HIGHLIGHTTEXT 0xFFFFFFFF
#define COLOR_HONEYDEW 0xF0FFF0FF
#define COLOR_HOTPINK 0xFF69B4FF
#define COLOR_HOTTRACK 0x0066CCFF
#define COLOR_INACTIVEBORDER 0xF4F7FCFF
#define COLOR_INACTIVECAPTION 0xBFCDDBFF
#define COLOR_INACTIVECAPTIONTEXT 0x434E54FF
#define COLOR_INDIANRED 0xCD5C5CFF
#define COLOR_INDIGO 0x4B0082FF
#define COLOR_INFO 0xFFFFE1FF
#define COLOR_INFOTEXT 0x000000FF
#define COLOR_IVORY 0xFFFFF0FF
#define COLOR_KHAKI 0xF0E68CFF
#define COLOR_LAVENDER 0xE6E6FAFF
#define COLOR_LAVENDERBLUSH 0xFFF0F5FF
#define COLOR_LAWNGREEN 0x7CFC00FF
#define COLOR_LEMONCHIFFON 0xFFFACDFF
#define COLOR_LIGHTBLUE 0xADD8E6FF
#define COLOR_LIGHTCORAL 0xF08080FF
#define COLOR_LIGHTCYAN 0xE0FFFFFF
#define COLOR_LIGHTGOLDENRODYELLOW 0xFAFAD2FF
#define COLOR_LIGHTGRAY 0xD3D3D3FF
#define COLOR_LIGHTGREEN 0x90EE90FF
#define COLOR_LIGHTPINK 0xFFB6C1FF
#define COLOR_LIGHTSALMON 0xFFA07AFF
#define COLOR_LIGHTSEAGREEN 0x20B2AAFF
#define COLOR_LIGHTSKYBLUE 0x87CEFAFF
#define COLOR_LIGHTSLATEGRAY 0x778899FF
#define COLOR_LIGHTSTEELBLUE 0xB0C4DEFF
#define COLOR_LIGHTYELLOW 0xFFFFE0FF
#define COLOR_LIME 0x00FF00FF
#define COLOR_LIMEGREEN 0x32CD32FF
#define COLOR_LINEN 0xFAF0E6FF
#define COLOR_MAGENTA 0xFF00FFFF
#define COLOR_MAROON 0x800000FF
#define COLOR_MEDIUMAQUAMARINE 0x66CDAAFF
#define COLOR_MEDIUMBLUE 0x0000CDFF
#define COLOR_MEDIUMORCHID 0xBA55D3FF
#define COLOR_MEDIUMPURPLE 0x9370DBFF
#define COLOR_MEDIUMSEAGREEN 0x3CB371FF
#define COLOR_MEDIUMSLATEBLUE 0x7B68EEFF
#define COLOR_MEDIUMSPRINGGREEN 0x00FA9AFF
#define COLOR_MEDIUMTURQUOISE 0x48D1CCFF
#define COLOR_MEDIUMVIOLETRED 0xC71585FF
#define COLOR_MENU 0xF0F0F0FF
#define COLOR_MENUBAR 0xF0F0F0FF
#define COLOR_MENUHIGHLIGHT 0x3399FFFF
#define COLOR_MENUTEXT 0x000000FF
#define COLOR_MIDNIGHTBLUE 0x191970FF
#define COLOR_MINTCREAM 0xF5FFFAFF
#define COLOR_MISTYROSE 0xFFE4E1FF
#define COLOR_MOCCASIN 0xFFE4B5FF
#define COLOR_NAVAJOWHITE 0xFFDEADFF
#define COLOR_NAVY 0x000080FF
#define COLOR_OLDLACE 0xFDF5E6FF
#define COLOR_OLIVE 0x808000FF
#define COLOR_OLIVEDRAB 0x6B8E23FF
#define COLOR_ORANGE 0xFFA500FF
#define COLOR_ORANGERED 0xFF4500FF
#define COLOR_ORCHID 0xDA70D6FF
#define COLOR_PALEGOLDENROD 0xEEE8AAFF
#define COLOR_PALEGREEN 0x98FB98FF
#define COLOR_PALETURQUOISE 0xAFEEEEFF
#define COLOR_PALEVIOLETRED 0xDB7093FF
#define COLOR_PAPAYAWHIP 0xFFEFD5FF
#define COLOR_PEACHPUFF 0xFFDAB9FF
#define COLOR_PERU 0xCD853FFF
#define COLOR_PINK 0xFFC0CBFF
#define COLOR_PLUM 0xDDA0DDFF
#define COLOR_POWDERBLUE 0xB0E0E6FF
#define COLOR_PURPLE 0x800080FF
#define COLOR_RED 0xFF0000FF
#define COLOR_ROSYBROWN 0xBC8F8FFF
#define COLOR_ROYALBLUE 0x4169E1FF
#define COLOR_SADDLEBROWN 0x8B4513FF
#define COLOR_SALMON 0xFA8072FF
#define COLOR_SANDYBROWN 0xF4A460FF
#define COLOR_SCROLLBAR 0xC8C8C8FF
#define COLOR_SEAGREEN 0x2E8B57FF
#define COLOR_SEASHELL 0xFFF5EEFF
#define COLOR_SIENNA 0xA0522DFF
#define COLOR_SILVER 0xC0C0C0FF
#define COLOR_SKYBLUE 0x87CEEBFF
#define COLOR_SLATEBLUE 0x6A5ACDFF
#define COLOR_SLATEGRAY 0x708090FF
#define COLOR_SNOW 0xFFFAFAFF
#define COLOR_SPRINGGREEN 0x00FF7FFF
#define COLOR_STEELBLUE 0x4682B4FF
#define COLOR_TAN 0xD2B48CFF
#define COLOR_TEAL 0x008080FF
#define COLOR_THISTLE 0xD8BFD8FF
#define COLOR_TOMATO 0xFF6347FF
#define COLOR_TRANSPARENT 0xFFFFFF00
#define COLOR_TURQUOISE 0x40E0D0FF
#define COLOR_VIOLET 0xEE82EEFF
#define COLOR_WHEAT 0xF5DEB3FF
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_WHITESMOKE 0xF5F5F5FF
#define COLOR_WINDOW 0xFFFFFFFF
#define COLOR_WINDOWFRAME 0x646464FF
#define COLOR_WINDOWTEXT 0x000000FF
#define COLOR_YELLOW 0xFFFF00FF
#define COLOR_YELLOWGREEN 0x9ACD32FF

format se foloseste la un text in care vrei sa zici ca x a fakut x sau x a mers la x etc..

exp

new string[80];

format(string,sizeof(string),"%s A plecat de pe server.",GetPlayerName(playerid));

SendClientMessage(playerid,COLOR_RED,string);

aici o sa deea eroare ca nam definit color red dar in fine

chestia e sa folosesti sendclientmessage pentru messaje nu format..

ia da comanda /sex

scrieo aici

New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...

Link to comment
Share on other sites

if(strcmp(cmd, "/sex", true) == 0) {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp)) {

SendClientMessage(playerid, COLOR_PINK, "USAGE: /sex [playerid] [amount]");

return 1;

}

giveplayerid = strval(tmp);

tmp = strtok(cmdtext, idx);

if(!strlen(tmp)) {

SendClientMessage(playerid, COLOR_PINK, "USAGE: /sex [playerid] [amount]");

return 1;

}

moneys = strval(tmp);

asta ii comanda /sex...

Fara reclama in semnatura!

Link to comment
Share on other sites

redenumeste variabila string in dstr,la toata comanda

cmd = strtok(cmdtext, idx);
if(!strcmp(cmdtext, "/cmds", true))
   {
   new dstr[1020], sL[100], sI[100], sU[100], sQ[100], sT[100], sR[100], sE[100];
   format(sL, sizeof(sL), "{FDFF66}/flip /healme /credits /rules /cc /count");
   format(sI, sizeof(sI), "{FDFF66}/godon /godoff /skin <id> /vcontrol /godlist");
    format(sU, sizeof(sU), "{FDFF66}/godcar /cash /culori /zi /noapte /nrg /fix");
    format(sQ, sizeof(sQ), "{FDFF66}/bug /sugestie /savep /loadp /sprunk /beer /smoke");
    format(sT, sizeof(sT), "{FDFF66}/rampages /pgoto <id> /vcmds /cmds /ponline");
    format(sE, sizeof(sE), "{FDFF66}/vup /vupoff /speedo");
    format(sR, sizeof(sR), "Apasa {FC0303}2 {FDFF66}pentru a repara masina si apasa {FC0303}CLICK {FDFF66}pentru a adauga nitro!");
   format(dstr, sizeof(dstr),"{FF0202}->/car [name]{EFED7A} foloseste {FF0202}/car [name]{EFED7A} pentru a lua masina dorita\n{FF0202}->/teles{EFED7A} foloseste {FF0202}/teles {EFED7A}pentru a vedea toate teleporturile \n{FF0202}->/vcontrol{EFED7A} foloseste {FF0202}/vcontrol {EFED7A}pentru a accesa Vehicle Control\n\n\n%s\n%s\n%s\n%s\n%s\n%s\n\n\n%s",sL,sI,sU,sQ,sT,sE,sR);
    return ShowPlayerDialog(playerid, 1010, 0, "General Commands", dstr, "Ok", "Cancel");
    }

Link to comment
Share on other sites

Numai Astea is:

if(strcmp(cmd, "/sex", true) == 0) {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp)) {

SendClientMessage(playerid, COLOR_PINK, "USAGE: /sex [playerid] [amount]");

return 1;

}

giveplayerid = strval(tmp);

tmp = strtok(cmdtext, idx);

if(!strlen(tmp)) {

SendClientMessage(playerid, COLOR_PINK, "USAGE: /sex [playerid] [amount]");

return 1;

}

moneys = strval(tmp);

//printf("givecash_command: %d %d",giveplayerid,moneys);

if (IsPlayerConnected(giveplayerid)) {

GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

GetPlayerName(playerid, sendername, sizeof(sendername));

playermoney = GetPlayerMoney(playerid);

if (moneys > 0 && playermoney >= moneys) {

GivePlayerMoney(playerid, (0 - moneys));

GivePlayerMoney(giveplayerid, moneys);

format(string, sizeof(string), "Faci sex cu %s(player: %d),pentru $%d.", giveplayer,giveplayerid, moneys);

SendClientMessage(playerid, COLOR_PINK, string);

format(string, sizeof(string), "ai primit $%d de la %s(player: %d) pentru a face sex cu ea/el =)).", moneys, sendername, playerid);

SendClientMessage(giveplayerid, COLOR_PINK, string);

format(string, sizeof(string), "%s face sex cu %s",sendername, giveplayer);

        SendClientMessageToAll(COLOR_PINK, string);

printf("%s(playerid:%d) ia dat %d lu %s(playerid:%d) pentru a face sex cu ea/el =))",sendername, playerid, moneys, giveplayer, giveplayerid);

}

else {

SendClientMessage(playerid, COLOR_PINK, "Trebuie sal platesti pentru a face sex cu el dar ai grija daca platesti vrun admin iei ban.");

}

}

else {

format(string, sizeof(string), "%d nu e un jucator activ.", giveplayerid);

SendClientMessage(playerid, COLOR_PINK, string);

}

return 1;

}

if(strcmp(cmd, "/givecash", true) == 0) {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp)) {

SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givecash [playerid] [amount]");

return 1;

}

giveplayerid = strval(tmp);

tmp = strtok(cmdtext, idx);

if(!strlen(tmp)) {

SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givecash [playerid] [amount]");

return 1;

}

moneys = strval(tmp);

//printf("givecash_command: %d %d",giveplayerid,moneys);

if (IsPlayerConnected(giveplayerid)) {

GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

GetPlayerName(playerid, sendername, sizeof(sendername));

playermoney = GetPlayerMoney(playerid);

if (moneys > 0 && playermoney >= moneys) {

GivePlayerMoney(playerid, (0 - moneys));

GivePlayerMoney(giveplayerid, moneys);

format(string, sizeof(string), "You have sent %s(player: %d), $%d.", giveplayer,giveplayerid, moneys);

SendClientMessage(playerid, COLOR_YELLOW, string);

format(string, sizeof(string), "You have recieved $%d from %s(player: %d).", moneys, sendername, playerid);

SendClientMessage(giveplayerid, COLOR_YELLOW, string);

printf("%s(playerid:%d) has transfered %d to %s(playerid:%d)",sendername, playerid, moneys, giveplayer, giveplayerid);

}

else {

SendClientMessage(playerid, COLOR_YELLOW, "Invalid transaction amount.");

}

}

else {

format(string, sizeof(string), "%d is not an active player.", giveplayerid);

SendClientMessage(playerid, COLOR_YELLOW, string);

}

return 1;

}

Fara reclama in semnatura!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By VenoMarius ERROR404
      Salut, am si eu o problema cu database, dupa ce imi dau admin 7 din baza de date cand intru pe joc nu primesc adminul, dc ?
    • By Raul112233
      Salut,am si eu o problema!!
      Cand ma fac duty in lspd si pun tinta imi da server closed connection!!
      De ce??
       

    • By Goad
      @Banditul
      @Mister
       
      Salut, de curand toate conturile mele " sociale " au fost sparte inclusiv cel de crypto, de cineva pus.. desigur.
       
      Nu stiu ce reclama a facut aici dar scriu dupa atata timp deoarece trebuiesc informati toti despre ceea ce descarca de aici sau cu cine se intra in contact. 
       
      Doresc daca se poate sa imi fie șters warning-ul deoarece se pot face verificari pe clasa de IP. O sa las o poza mai jos, mi-am actualizat parola fara probleme chiar acum.

    • By Yonut
      Salut!
       
      Am o mica problema cu include-ul mSelection, pe mine personal ma depaseste si nu stiu ce sa-i fac, am incercat ogramada de chestii.
      Mai exact cand un jucator foloseste comanda [/clothes], [/buyhat] respectiv [/glasses] apare textdraw-ul include-ului mSelection insa nu se incarca niciun model, cateva poze: 


      Cred ca ati inteles despre ce este vorba.
      Nu primesc absolut nicio erroare in consola, am utilizat crashdetect in speranta ca voi gasi ceva insa, nimic.
       
      Codul pare sa fie ok, fisier-ul skins.txt exista in folder-ul scriptfiles, la fel si glasses.txt, s.a.m.d
       
      Daca cineva a mai avut problema asta si m-ar ajuta as aprecia enorm.
      Vreau raspunsuri serioase, de la persoane seriose, nu aiurea.
      Multumesc!
    • By VenoMarius ERROR404
      Am o problema: dupa ce al luat reward-ul  imi apare timpul de asteptare pentru al lua dinou, iar daca dau relog de fiecare data pot da /reward.
      NU este salvat timul undeva ?
      Si cum il salvez ?

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.