new coordsstring[256];
SendClientMessage(playerid, COLOR_RED," ");
format(coordsstring, sizeof(coordsstring),"------------------------------------| %s |------------------------------------",name);
SendClientMessage(playerid, COLOR_RED,coordsstring);
format(coordsstring, sizeof(coordsstring), "- Level:[%d] Sex:[%s] Age:[%d] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,cash,account,pnumber);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "- PlayingHours:[%d] Job:[%s] Respect:[%d/%d] DonateRank:[%s]", ptime,jtext,exp,expamount,drank);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "- Drugs:[%d] Materials:[%d] Organisation:[%s] Rank:[%s]",drugs,mats,ftext,rtext);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
======================================================
if (strcmp(cmd, "/stats", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] != 0)
{
ShowStats(playerid,playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s ja gleda svojata licna karta.", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not Logged in!");
}
}
return 1;
}
=======================================================
Molim vas da mi pomozite
Hocu da komandu /stats bude u dialogu kako da to napravim molim vas pomozete mi. Hvala uapred.
http://wiki.sa-mp.com/wiki/ShowPlayerDialog (http://wiki.sa-mp.com/wiki/ShowPlayerDialog)
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[])
http://wiki.sa-mp.com/wiki/OnDialogResponse (http://wiki.sa-mp.com/wiki/OnDialogResponse)
OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
зошто не кажеш како а не да даваш линкови од википедиа?
Na ovom forumu je dozvoljena samo latinica... BY: LordShigi
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "Level:[%d] Spol:[%s]\nGod:[%d] Drz:[%s]\nBanka:[$%d] BrojMob:[%d]\nDonatorRank:[%s] SatiIgranja:[%d]\nPosao:[%s] RespectBodovi:[%d/%d]\nPocinjeniKriminali:[%d] Uhicen:[%d]\nBolesti:[%s] Tim:[%s]\nOrg:[%s] Rank:[%s]\nLevelCIJENA [%d]",level,atext,age,otext,account,pnumber,drank,ptime,jtext,exp,expamount,crimes,arrests,dtext,ttext,ftext,rtext,costlevel);
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "| Vasa osobna kartica: |",coordsstring,"Uredu","Izadji");
}
}
Evoti ovo zamejni sa tim svojim
Nemoze tako dava errrors.
Video sam negde ovo
new coordsstring[1024];
format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);
format(coordsstring, sizeof(coordsstring), "%sDonateRank:[%s] MarriedTo:[%s] PlayingHours:[%d] LottoNr:[%d] Job:[%s]",coordsstring, drank,married,ptime,lotto,jtext);
format(coordsstring, sizeof(coordsstring), "%sFishesCaught:[%d] BiggestFish:[%d] CrimesCommited:[%d] TimesArrested:[%d] WantedDeaths:[%d]",coordsstring, fishes,bigfish,crimes,arrests,warrests );
format(coordsstring, sizeof(coordsstring), "%sKills:[%d] Deaths:[%d] NextLevel:[$%d] Respect:[%d/%d] WantedLevel:[%d] Family:[%s]",coordsstring,kills,deaths,costlevel,exp,expamount,wanted,f2text);
format(coordsstring, sizeof(coordsstring), "%sDrugs:[%d] Materials:[%d] Team:[%s] Disease:[%s] Organisation:[%s] Rank:[%s]",coordsstring,drugs,mats,ttext,dtext,ftext,rtext);
ali vidi http://slike.hr/slike/samp003_bbef8.png.html (http://slike.hr/slike/samp003_bbef8.png.html)
Citat: GBL poslato Septembar 17, 2010, 12:03:54 POSLE PODNE
Nemoze tako dava errrors.
Video sam negde ovo
new coordsstring[1024];
format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);
format(coordsstring, sizeof(coordsstring), "%sDonateRank:[%s] MarriedTo:[%s] PlayingHours:[%d] LottoNr:[%d] Job:[%s]",coordsstring, drank,married,ptime,lotto,jtext);
format(coordsstring, sizeof(coordsstring), "%sFishesCaught:[%d] BiggestFish:[%d] CrimesCommited:[%d] TimesArrested:[%d] WantedDeaths:[%d]",coordsstring, fishes,bigfish,crimes,arrests,warrests );
format(coordsstring, sizeof(coordsstring), "%sKills:[%d] Deaths:[%d] NextLevel:[$%d] Respect:[%d/%d] WantedLevel:[%d] Family:[%s]",coordsstring,kills,deaths,costlevel,exp,expamount,wanted,f2text);
format(coordsstring, sizeof(coordsstring), "%sDrugs:[%d] Materials:[%d] Team:[%s] Disease:[%s] Organisation:[%s] Rank:[%s]",coordsstring,drugs,mats,ttext,dtext,ftext,rtext);
ali vidi http://slike.hr/slike/samp003_bbef8.png.html (http://slike.hr/slike/samp003_bbef8.png.html)
stavi jedno ispod druog, sloi lepo
Citat: gonss poslato Septembar 17, 2010, 12:10:14 POSLE PODNE
Citat: GBL poslato Septembar 17, 2010, 12:03:54 POSLE PODNE
Nemoze tako dava errrors.
Video sam negde ovo
new coordsstring[1024];
format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);
format(coordsstring, sizeof(coordsstring), "%sDonateRank:[%s] MarriedTo:[%s] PlayingHours:[%d] LottoNr:[%d] Job:[%s]",coordsstring, drank,married,ptime,lotto,jtext);
format(coordsstring, sizeof(coordsstring), "%sFishesCaught:[%d] BiggestFish:[%d] CrimesCommited:[%d] TimesArrested:[%d] WantedDeaths:[%d]",coordsstring, fishes,bigfish,crimes,arrests,warrests );
format(coordsstring, sizeof(coordsstring), "%sKills:[%d] Deaths:[%d] NextLevel:[$%d] Respect:[%d/%d] WantedLevel:[%d] Family:[%s]",coordsstring,kills,deaths,costlevel,exp,expamount,wanted,f2text);
format(coordsstring, sizeof(coordsstring), "%sDrugs:[%d] Materials:[%d] Team:[%s] Disease:[%s] Organisation:[%s] Rank:[%s]",coordsstring,drugs,mats,ttext,dtext,ftext,rtext);
ali vidi http://slike.hr/slike/samp003_bbef8.png.html (http://slike.hr/slike/samp003_bbef8.png.html)
stavi jedno ispod druog, sloi lepo
Kako aj kazi ?
koliko sam skuzio ... koristi \n da ide ispod i sve ce biti ljepo poslagano ...
evo da ne otvaram novu temu bzv,jednostavno cu pitati vamo,evo i ja sam pokusao napraviti /stats ali mi nece dakle pojavljuju mi se erroeri,evo pogledajte sta sam sve radio...
1 stari /stats sam izbrisao i dodao ovaj...
if (strcmp(cmd, "/stats", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] != 0)
{
ShowStats(playerid,playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s ja gleda svojata licna karta.", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not Logged in!");
}
}
return 1;
}
i unda tamo di ti pokazuje stat sam ostavio isto kao sto je prije bilo..
new coordsstring[256];
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
format(coordsstring, sizeof(coordsstring),"*** %s ***",name);
SendClientMessage(playerid, COLOR_WHITE,coordsstring);
format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);
SendClientMessage(playerid, COLOR_GRAD1,coordsstring);
format(coordsstring, sizeof(coordsstring), "DonateRank:[%s] MarriedTo:[%s] PlayingHours:[%d] LottoNr:[%d] Job:[%s]", drank,married,ptime,lotto,jtext);
SendClientMessage(playerid, COLOR_GRAD3,coordsstring);
format(coordsstring, sizeof(coordsstring), "FishesCaught:[%d] BiggestFish:[%d] CrimesCommited:[%d] TimesArrested:[%d] WantedDeaths:[%d]", fishes,bigfish,crimes,arrests,warrests );
SendClientMessage(playerid, COLOR_GRAD4,coordsstring);
format(coordsstring, sizeof(coordsstring), "Kills:[%d] Deaths:[%d] NextLevel:[$%d] Respect:[%d/%d] WantedLevel:[%d] Family:[%s]",kills,deaths,costlevel,exp,expamount,wanted,f2text);
SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
format(coordsstring, sizeof(coordsstring), "Drugs:[%d] Materials:[%d] Team:[%s] Disease:[%s] Organisation:[%s] Rank:[%s]",drugs,mats,ttext,dtext,ftext,rtext);
SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
format(coordsstring, sizeof(coordsstring), "House key [%d] Business key [%d] HireKey [%d] int:[%d] local[%d]", housekey,bizkey,HireCar[targetid],intir,local);
SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
}
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
}
i evo erroei..
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1752) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1777) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1866) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1870) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1882) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1886) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1890) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1894) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1898) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1902) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1906) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1918) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1922) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1926) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1930) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1934) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1946) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1950) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1954) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1966) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1970) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(2216) : error 004: function "SendIRCMessage" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(2238) : error 004: function "SendIRCMessage" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(2250) : error 004: function "SaveCK" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(2280) : error 004: function "SavePapers" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(2311) : error 004: function "SaveFamilies" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
dakle ovaki erroei mi se uvjek pojave kad idem napravit dialog tako je isto bilo kad sam isao napravit /registraciju u dialogu ali nije tilo iste erroer mi je pokazivalo,pogledatjet npr ove erroer...
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1866) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Bill Gates\Desktop\GfGFgF\gamemodes\timertest.pwn(1870) : error 004: function "PlayerToPoint" is not implemented
public IsAtClothShop(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
{//Binco & Suburban
return 1;
}
else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
{//Zip & Victim
return 1;
}
}
return 0;
}
dakle ovako mi je i prije bilo u GF gm ali nije pokazivalo nizi jedan erroer,eto vi mi recita sta bi sada treba radit...
hvala unaprjed...
cini mi se da si samo to prekopirao iz nekog moda..pa zbog toga cesto dolazi do greski "PlayerToPoint" is not implemented..to se i meni prije desavalo,kada bih samo prekoporao komandu iz nekog moda..ispravite me ako gresim..
Vrhunski skripteru, mislim da ti nisi ni procitao osnove pawn skriptanja...
znaci nikoj neznae kako.
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "Level:[%d] Spol:[%s]\nGod:[%d] Drz:[%s]\nBanka:[$%d] BrojMob:[%d]\nDonatorRank:[%s] SatiIgranja:[%d]\nPosao:[%s] RespectBodovi:[%d/%d]\nPocinjeniKriminali:[%d] Uhicen:[%d]\nBolesti:[%s] Tim:[%s]\nOrg:[%s] Rank:[%s]\nLevelCIJENA [%d]",level,atext,age,otext,account,pnumber,drank,ptime,jtext,exp,expamount,crimes,arrests,dtext,ttext,ftext,rtext,costlevel);
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "| Vasa osobna kartica: |",coordsstring,"Uredu","Izadji");
}
}
od Evil X ne raboti ova greski milion.