Viper Posted December 19, 2011 Report Share Posted December 19, 2011 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 More sharing options...
TzAkS Posted December 19, 2011 Report Share Posted December 19, 2011 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 Link to comment Share on other sites More sharing options...
Viper Posted December 19, 2011 Author Report Share Posted December 19, 2011 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! Link to comment Share on other sites More sharing options...
Question
Viper
Salut am vrut sa fac o comanda:
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