- 0
Problema vipname
-
Similar Content
-
Problema turf
By Soryn.,
- 2 answers
- 218 views
-
- 1 reply
- 172 views
-
Problema
By ImJustSlim,
- 3 answers
- 281 views
-
- 2 replies
- 153 views
-
- 1 answer
- 298 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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; }
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.