- 0
Problema vipname
-
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
rObY.
Cand dau /vipname, nu mi se pune text-ul pe masina.
CMD:vipname(playerid, params[]) { if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_GREY, "Nu esti intr-un vehicul!"); new carid = GetPlayerVehicleID(playerid),idcar=-1; for(new vv; vv < MAX_PERSONAL_VEHICLES; vv++) { if(carid == PlayerInfo[playerid][pCarID][vv]) { idcar = vv; } } if(idcar == -1) return SCM(playerid, COLOR_LGREEN, "Poti folosi aceasta comanda doar pe vehicule VIP."); if(carid == PlayerInfo[playerid][pCarID][idcar]) { if(PlayerInfo[playerid][pCarVIP][idcar] > 0) { new query[256],text[20],test[20]; if(sscanf(params, "s[20]", text)) return SCM(playerid,COLOR_DCHAT, "Syntax:{ffffff} /vipname [vipname text]"); if(strlen(text) > 20) return SCM(playerid, COLOR_LGREEN, "Maximum 20 characters are allowed."); if(strlen(text) == 0) return 1; format(CarVipName[playerid][idcar], 20, text); SetVipText(playerid, idcar); mysql_real_escape_string(text, test); mysql_format(SQL, query, sizeof(query), "UPDATE `cars` SET `VipText`='%s' WHERE `ID`='%d'", test, PlayerInfo[playerid][pCar][idcar]); mysql_tquery(SQL, query, "", ""); format(query, sizeof(query), "Text pentru vehicul setat: %s", text); SCM(playerid, COLOR_ADMCOMMANDS, query); } else return SCM(playerid, COLOR_LGREEN, "Poti folosi aceasta comanda doar pe vehicule VIP."); } else return SCM(playerid, COLOR_LGREEN, "Poti folosi aceasta comanda doar pe vehicule VIP."); return true; }3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now