- 0
problema numere inmatriculare
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Orion
salut,am si eu o problema.vreau sa fac sa apara 3d text deasupra masini cand o inmatriculez...stiu se face cu create3dtextlabel si attach dar nu stiu unde se pun la comanda mea actuala,daca m-ati putea ajuta v-as fi recunoscator.
if(strcmp(cmd, "/inscriemasina", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pPcarkey] != 999) { if(!PlayerToPoint(25.0, playerid, 1064.5847,-890.3940,43.1979)) { SendClientMessage(playerid, COLOR_GREY, "Server: Nu esti la agentia de inmatriuclari."); return 1; } if(PlayerInfo[playerid][pCash] < 10000) { SendClientMessage(playerid, COLOR_GREY, "Server: Nu ai destui bani. (10.000$)"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[255]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; for(new s = 0; s < num_words; s++) { new pos; while((pos = strfind(result,Swears[s],true)) != -1) for(new i = pos, j = pos + strlen(Swears[s]); i < j; i++) { result[i] = '*'; } } if(!strlen(result)) { SendUsage(playerid, " /inscriemasina [numar]"); return 1; } if(strfind(result, "|", true) != -1) { SendClientMessage(playerid, COLOR_WHITE, "Server: {FF0000}ErroR."); return 1; } else { moneys = PlayerInfo[playerid][pPcarkey]; strmid(CarInfo[moneys][cNum], result, 0, strlen(result), 999); format(string, sizeof(string), "%s a inscris %s -ul (id: %d). Noul numar este %s",PlayerInfo[playerid][pNume],CarInfo[moneys][cDescription],moneys+PreVehicle,CarInfo[moneys][cNum]); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); format(string, sizeof(string), "%s",CarInfo[moneys][cNum]); SetVehicleNumberPlate(moneys+PreVehicle, string); GivePlayerCash(playerid, -10000); format(string, sizeof(string), "UPDATE cars SET Num='%s' WHERE id=%d", CarInfo[moneys][cNum], moneys+PreVehicle); mysql_query(string); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "Server: Nu ai vreo masina personala."); return 1; } } return 1; }0 answers to this question
Recommended Posts