Jump to content
  • 0

Problema la o comanda...


Question

Posted

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

2 answers to this question

Recommended Posts

Posted

	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
Posted

am rezolvato insa nu imi scade cookie desi am pus GivePlayerCookie(playerid, -5);

nu stiti dece nu imi scade? daca va rog frumos sa imi ziceti am bagato si la #define...

EDIT: Am rezolvato!

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.