- 0
Problema comanda.
-
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
Masodion
Problema intalnita (descriere): Nu pot sa dea 2 nume cand dau comanda /so . de exemplu "
Prima data " Politist nume" apare, a 2-a oara nu apare numele, apare "Politistul `nume` : esti urmarit de Politie. Trage pe drepta. As vrea sa apara de 2 ori numele. Sper ca ati inteles ce vreau sa zic. (daca nu, uitati aici o poza http://i.imgur.com/nVSaO16.png
Ero(area / rile) / warning-(ul / urile): ---
Liniile de cod / sursa / script-ul(obligatoriu):
CMD:so(playerid, params[]) { new id; if(sscanf(params, "us[128]", id)) { SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/whisper [playerid] [message]"); } if(IsPlayerConnected(id) && playerVariables[id][pStatus] >= 1) { if(IsPlayerInRangeOfPlayer(playerid, id, 100.0)) { if(playerVariables[id][pSeeWhisper] == 0) { new giveplayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME); format(szMessage, sizeof(szMessage), "(megaphone)Politist %s : {0064FF} %d esti urmarit de Politie. Trage pe Dreapta", szPlayerName); SendClientMessage(id, COLOR_YELLOW, szMessage); GetPlayerName(id, giveplayerName, MAX_PLAYER_NAME); format(szMessage, sizeof(szMessage), "(megaphone)Politist %s :{0064FF} %d esti urmarit de Politie. Trage pe Dreapta", giveplayerName); SendClientMessage(playerid, COLOR_YELLOW, szMessage); } else SendClientMessage(playerid, COLOR_GREY, "You're too far away."); } } else { SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated."); } return 1; }
Edited by MasodionImagini / Video (optional): Poza cum vreau sa apara http://i.imgur.com/nVSaO16.png
Ati incercat sa rezolvati singur?:Da, am incercat sa adaug de 2 ori giveplayerName, dar fara reusita, si dupa szPlayerName si tot fara reusita
update
12 answers to this question
Recommended Posts