- 0
Problema ce tine de functia format din pawn...
-
Similar Content
-
- 63 replies
- 7,046 views
-
- 12 replies
- 380 views
-
- 36 replies
- 3,611 views
-
- 0 replies
- 354 views
-
- 16 replies
- 1,918 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
burnfire
Salutare SA:MP Romania!Am o mica problema si tot odata,foarte neobisniuta...Am facut o comanda cu ZCMD si SSCANF cu un mesaj care ar trebui sa se transmita la tot serverul,dar nu se intampla asta...
Defapt,asa mi se intampla la toate comenzile care tin de Admin Systemul,care este integrat in GM!Mai jos aveti comanda "goto":
[pawn]CMD:goto(playerid,params[])
{
new toplayerid,Float:Pos[3],interior,vw,rogoto[512],enggoto[512];
if(sscanf(params,"u",toplayerid))
{
if(limba[playerid] == 0) return SendClientMessage(playerid,0xFF0000FF,"Utilizare comanda:/goto <Playerid|Name>");
if(limba[playerid] == 1) return SendClientMessage(playerid,0xFF0000FF,"Command Syntax:/goto <Playerid|Name>");
}
if(PInfo[playerid][Admin] < 2)
{
if(limba[playerid] == 0) return SendClientMessage(playerid,0xFF0000FF,"Trebuie sa ai minim level 2 pentru a utiliza aceasta comanda!");
if(limba[playerid] == 1) return SendClientMessage(playerid,0xFF0000FF,"You must to be admin level 2 to use this command!");
}
if(!IsPlayerConnected(toplayerid))
{
if(limba[playerid] == 0) return SendClientMessage(playerid,0xFF0000FF,"Acest player nu este conectat!");
if(limba[playerid] == 1) return SendClientMessage(playerid,0xFF0000FF,"This player isn't connected!");
}
GetPlayerPos(toplayerid,Pos[0],Pos[1],Pos[2]);
SetPlayerPos(playerid,Pos[0]+1,Pos[1],Pos[2]);
interior = GetPlayerInterior(toplayerid);
vw = GetPlayerVirtualWorld(toplayerid);
SetPlayerInterior(playerid,interior);
SetPlayerVirtualWorld(playerid,vw);
if(limba[playerid] == 0)
{
format(rogoto,sizeof(rogoto),"{FF0000}Royal {FF8800}Stunt {00FF00}Gaming {FFFFFF}AdmCmd:Adminul {FF0000}%s{FFFFFF}[iD:%d] s-a teleportat la playerul {FF0000}%s{FFFFFF}[iD:%d]!",GetName(playerid),playerid,GetName(toplayerid),toplayerid);
SendClientMessageToAll(-1,rogoto);
}
if(limba[playerid] == 1)
{
format(enggoto,sizeof(enggoto),"{FF0000}Royal {FF8800}Stunt {00FF00}Gaming {FFFFFF}AdmCmd:Admininstrator {FF0000}%s{FFFFFF}[iD:%d] has go to player {FF0000}%s{FFFFFF}[iD:%d]!",GetName(playerid),playerid,GetName(toplayerid),toplayerid);
SendClientMessageToAll(-1,enggoto);
}
return 1;
}[/pawn]
Problema este ca mesajul nu se transmite deloc...Am uitat sa precizez ca aceasta comanda este bilingva,adica daca playerul este roman,mesajul va fi trimis in romana,iar daca este in engleza,mesajul v-a fi trimis in engleza!Astept ajutorul vostru!
Link to comment
Share on other sites
17 answers to this question
Recommended Posts