Jump to content
  • 0

Problema la o comanda...


Viper

Question

Salut am vrut sa fac o comanda:

	if(strcmp(cmd, "/usecookie", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pCash] >= 5000)
			{
				if(PlayerInfo[playerid][pCookie] >= 5)
				{
                	new exp = PlayerInfo[i][pExp];
                	PlayerInfo[i][pExp] = exp + 1;
                   	SendClientMessage(playerid,COLOR_LIGHTGREEN, "Ai obtinuit un respect point pentru 5 cookie!;
					}
					else
					{
						SendClientMessage(playerid, COLOR_LIGHTGREEN,"  Tu nu ai 5 cookie !");
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_LIGHTGREEN,"   Tu nu ai 5000$ !");
				}
			}
		}
	}

dar cand o bag in mod si il compilez imi da dont send.. imi puteti spune.. va rog foarte frumos unde am gresit?.. multumesc

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

	if(strcmp(cmd, "/usecookie", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pCash] >= 5000)
			{
				if(PlayerInfo[playerid][pCookie] >= 5)
				{
                	new exp = PlayerInfo[i][pExp];
                	PlayerInfo[i][pExp] = exp + 1;
                   	SendClientMessage(playerid,COLOR_LIGHTGREEN, "Ai obtinuit un respect point pentru 5 cookie!);
					}
					else
					{
						SendClientMessage(playerid, COLOR_LIGHTGREEN,"  Tu nu ai 5 cookie !");
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_LIGHTGREEN,"   Tu nu ai 5000$ !");
				}
			}
		}
	}

Vezi asa

gXvsYS
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.