04.06.2013, 11:08
hi all.
this is the first time i face this problem.
i have a lot of string format in my GM and they all work fine.
this problem is that in-game i get " le policier 4$dijsjsh3dglkso " and so on.
i hope you understand
this is the related code
do you see any probleme somewhere ?
thanks
this is the first time i face this problem.
i have a lot of string format in my GM and they all work fine.
this problem is that in-game i get " le policier 4$dijsjsh3dglkso " and so on.
i hope you understand
this is the related code
Код:
new name[MAX_PLAYER_NAME]; new string[20]; targetID = clickedplayerid; GetPlayerName(clickedplayerid,name,sizeof(name)); format(string, sizeof(string), "Joueur - %s", name); ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, name, " Message privй\n Donner\n Vendre", "Suivant", "Annuler"); if(GetVehicleModel(newvehicleid) == 427 || GetVehicleModel(newvehicleid) == 497 || GetVehicleModel(newvehicleid) == 523 || GetVehicleModel(newvehicleid) == 596 || GetVehicleModel(newvehicleid) == 597 || GetVehicleModel(newvehicleid) == 598 || GetVehicleModel(newvehicleid) == 599) { ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Controle de police", " Arreter\n Suspecter\n Verifier le permis\n Verifier les passeport\n Regarder la fiche\n Dйsuspecter\n Liberer", "Ok", "Cancel"); criminelID = clickedplayerid; }
Код:
new messagestring[80]; new name[MAX_PLAYER_NAME]; criminelNAME = GetPlayerName(criminelID, name, sizeof(name)); policierNAME = GetPlayerName(policierID, name, sizeof(name)); TogglePlayerControllable(criminelID, 0); format(messagestring,sizeof(messagestring),"Le policier %s а arreter le criminel %s", policierNAME, criminelNAME); SendClientMessage(criminelID, police_color, messagestring);
thanks