RzV
-
Posts
50 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by RzV
-
-
Cate odata nu se primeste payday pe server si nu stiu din ce cauza :-??
public PayDay() { new string[128]; new account,interest; new rent = 0; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(WatchingTV[i] == 0) { if(PlayerInfo[i][pLevel] > 0) { if(MoneyMessage[i]==1) { SCM(i, COLOR_LIGHTRED, "You failed to pay your debt, Jail time."); GameTextForPlayer(i, "~r~Busted!", 2000, 1); SetPlayerInterior(i, 5); SetPlayerPos(i, 322.9037,305.5694,999.1484); PlayerInfo[i][pJailed] = 1; ResetPlayerWeapons(i); WantedPoints[i] = 0; SetPlayerSkin(i, 62); PlayerInfo[i][pMats] = 0; PlayerInfo[i][pJailTime] = 240; format(string, sizeof(string), "You are jailed for %d seconds. Bail: Unable", PlayerInfo[i][pJailTime]); SCM(i, COLOR_LIGHTBLUE, string); } new money=GetPlayerMoney(i); new playername2[MAX_PLAYER_NAME]; GetPlayerName(i, playername2, sizeof(playername2)); account = PlayerInfo[i][pAccount]; new key = PlayerInfo[i][pPhousekey]; if(key != 255) { rent = HouseInfo[key][hRent]; if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { rent = 0; } else if(rent > GetPlayerMoney(i)) { PlayerInfo[i][pPhousekey] = 255; SendClientMessage(i, COLOR_WHITE, "You have been evicted."); rent = 0; } HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent; } new tmpintrate; if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = intrate+4; } else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel] } else { if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = 3; } else { tmpintrate = 1; } } new h,mi; gettime(h,mi); if(PlayerInfo[i][pPayDay] >= 0) { Tax += TaxValue;//Should work for every player online PlayerInfo[i][pAccount] -= TaxValue; if(PlayerInfo[i][pDonateRank] > 0) { new bonus = PlayerInfo[i][pPayCheck] / 2; PlayerInfo[i][pPayCheck] += bonus; } new checks = PlayerInfo[i][pPayCheck]; new ebill = (PlayerInfo[i][pAccount]/10000)*(PlayerInfo[i][pLevel]); ConsumingMoney[i] = 1; GivePlayerMoney(i, checks); if(PlayerInfo[i][pAccount] > 0) { PlayerInfo[i][pAccount] -= ebill; SBizzInfo[4][sbTill] += ebill; } else { ebill = 0; } interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate); PlayerInfo[i][pExp]++; PlayerPlayMusic(i); PlayerInfo[i][pAccount] = account+interest; new str[1024]; format(str,1024,""wh"_________|"color_red"STATISTICI BANCA"wh"|_________\n\n"); format(str,1024,"%s"wh"Bani primiti: "color_green"%d$\n",str,checks); format(str,1024,"%s"wh"Taxa bani: "color_green"-%d$\n",str,TaxValue); if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255){format(str,1024,"%s"wh"Electicitate Bill: "color_green"-%d$\n",str,ebill);} format(str,1024,"%s"wh"Balanta veche: "color_green"%d$\n",str,money); format(str,1024,"%s"wh"Dobanda: "color_green"0.%d "wh"percent\n",str,tmpintrate); format(str,1024,"%s"wh"Castig "color_green"%d$\n",str , interest); format(str,1024,"%s"wh"Bani cont: "color_green"%d$\n",str , PlayerInfo[i][pAccount]); format(str,1024,"%s"wh"Ora: "color_cyan"%02d:%02d",str,h,mi); format(str,1024,"%s\t\t "color_red"PayDay\n",str); format(str,1024,"%s\t\t\t\t"color_blue"PayCheck",str); ShowPlayerDialog( i, 790, DIALOG_STYLE_MSGBOX, " ", str, "Iesi", "" ); PlayerInfo[i][pPayDay] = 0; PlayerInfo[i][pPayCheck] = 0; PlayerInfo[i][pConnectTime] += 1; if(PlayerInfo[i][pDonateRank] > 0) { PlayerInfo[i][pPayDayHad] += 1; if(PlayerInfo[i][pPayDayHad] >= 5) { PlayerInfo[i][pExp]++; PlayerInfo[i][pPayDayHad] = 0; } } } else { SCM(i, COLOR_LIGHTRED, "* You haven't played long enough to obtain a PayDay."); } } } else { SCM(i, COLOR_LIGHTRED, "Nu ai primit payday pentru ca ai stat cu tv."); } } } SaveAccounts(); Checkprop(); return 1; } strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; }
Aceasta este functia public .
-
Ms fain !
Problema rezolvata :cool:
-
Foarte frumoasa !!!
5/5 gJ
-
Ma gandeam cai facut un interior pentru spital )
In rest e frumusel :)
-
Cum as putea face ca in anumite zone sa apara un text drawn
De exemplu cand sunt in zona Grove sa apara ( Grove Street )
Sau cand sunt in zona factiunii Ballas sa apara ( Ballas )
-
era pus .....
if(ReactionState == R_STATE_ACTIVE) { if(!strcmp(text, ReactionString, false)) { ReactionState = R_STATE_NOT_ACTIVE; new stringa[80], PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid,PlayerName,MAX_PLAYER_NAME); format(stringa,sizeof(stringa),"** %s has won the fast event and recieved $%d! **",PlayerName,ReactionCash); SCMTA(TEAM_Grove_COLOR,stringa); GivePlayerMoney(playerid,ReactionCash); ReactionCash = 0; } }
Era de la astea !
-
la OnPlayerDisconnect
if ( IsPlayerConnected( playerid ) { new str[ 256 ]; format( str, sizeof( str ), "%s has left the server!", PlayerName( playerid ) ); SendClientMessageToAll( COLOR_RED, str ); }
(11252) : error 001: expected token: ")", but found "{"
linia este a2a adica " { "
EDIT: Daca o sterg imi da alte erori ( mai multe ) !
EDIT [ 2 ] : Am rezolvat problema aia , am adaugat inca o paranteza adica asa " if ( IsPlayerConnected( playerid )) "
Dar imi mai da un warning : (61866) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
Linia este : new stringa[80], PlayerName[MAX_PLAYER_NAME];
Afecteaza cu ceva sau il las asa ?
-
Mai am inca o problema , l-am testat am bagat si la OnPlayerDisconect asta
new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "%s has leaved the server", pname); SCMTA(0xFFFFFFFF, string);
Si cand iese un player dupa server nu apare ...
Iar pentru cealalta la OnPlayerConnect nu apare tot cuvantul server , apare doar se :-??
-
gameson.pwn(10813) : error 021: symbol already defined: "string"
asta este linia : new string[256], pname[MAX_PLAYER_NAME];
-
Salut , am folosit un program SA-MP PWN din colectia lui FarSe si am facut urmatoarele functii
new string[256], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "%s has joined the server", pname); SendClientMessageToAll(0xFFFFFFFF, string);
Unde as putea aseza asta ca sa apara in chat cand se conecteaza un player iar ,new string[256], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "%s has leave the server", pname); SendClientMessageToAll(0xFFFFFFFF, string);
asta cand iese un player ? :-?
Multumesc
-
Numai sa criticati stiti si voi [ Unii ! ] :-<
LosTSouL , gJ
5/5 pentru descriere
-
Respectati munca depusa macar ....
Mie imi plac
-
Si daca as vrea la o factiune sa nu se vada membri pe mini-map ? :-?
-
Salut care are sa imi dea si mie urmatoarele includes ca nu le gasesc.
1. Foreach
2. Rotative.inc
3. Progress.inc
4. Audio.inc
Va multumesc :)
-
schimba culoarea aia rosie xD
Pentru primul tau FS e bine dar inlocueste culoarea aia rosie !
-
pai cel mai potrivit ar fii FS-ul asta: http://forum.sa-mp.com/showthread.php?t=182435&highlight=garhouse
sau sa iti pui sa iti arate casele pe mini-map foloseste functia asta: http://wiki.sa-mp.com/wiki/SetPlayerMapIcon
Poi cum la modu asta le faci tu direct din game ??? si tile baga el in fisierul property.cfg si in gamemod ?
-
=-" post="84681" timestamp="1310551383"]
Incearca asa
format(str,2640,"%s"color_red""wh"{009900}:: ACCOUNT :: /rules /stats /newpass /buylevel /upgrade\n");
format(str,2640,"%s"color_red""wh"{009933}:: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /opendoor(/od)\n");
La fel imi da
-
Eu as vrea sa fac ceva in genul asta daca se poate dar sa fie comenzile din help ... :
Imi poate spune cineva cum rezolv aceasta eroare ? :|
-
Fa cu SendClientMessage :|
Eu as vrea sa fac ceva in genul asta daca se poate dar sa fie comenzile din help ... :
-
Deci am vrut sa fac o comanda /help si mia dat cateva erori si nu am idee cum sa le rezolv :-??
if(strcmp(cmd, "/help", true) == 0) { if(IsPlayerConnected(playerid)) { new str[2640]; format(str,2640,"%s"color_red""wh"{009900}:: ACCOUNT :: /rules /stats /newpass /buylevel /upgrade\n",str); format(str,2640,"%s"color_red""wh"{009933}:: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /opendoor(/od)\n",str); format(str,2640,"%s"color_red""wh"{009966}:: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /askq /animlist /stopanim /fuel\n",str); format(str,2640,"%s"color_red""wh"{009999}:: GENERAL :: (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins /licensers /mymute\n",str); format(str,2640,"%s"color_red""wh"{0099CC}:: GENERAL :: /coin /give /sid /smoke\n",str); format(str,2640,"%s"color_red""wh"{33CCFF}:: CHAT :: (/p)me (/cw)hisper (/o)oc (/s)hout /low (/b) (/f)action /me /do /togooc /tognews /togfam /togpm /togphone\n",str); format(str,2640,"%s"color_red""wh"{00FFFF}:: BANK :: /balance /withdraw /deposit /wiretransfer\n",str); if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1) { format(str,2640,"%s"color_red""wh"{0066CC}:: LSPD :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /a(rrest)1,2,3 /duty /wanted /cuff /tazer\n",str); format(str,2640,"%s"color_red""wh"{0066CC}:: LSPD :: /frisk /take /ticket (/gov)ernment /deliver /camera /ram /aswat /dswat /swat\n",str); format(str,2640,"%s"color_red""wh"{0066CC}:: LSPD :: /undercover /copuntie /backup /backupclear /jaillist /move1 ( 1 , 2 , 3 ) /getincar\n",str); } if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2) { format(str,2640,"%s"color_red""wh"{0066CC}:: FBI :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /a(rrest)1,2,3 /mdc /wanted /cuff /tazer /a(rrest)1,2,3 /move1 ( 1 , 2 , 3 )\n",str); format(str,2640,"%s"color_red""wh"{0066CC}:: FBI :: /frisk /take /ticket (/gov)ernment /deliver /camera /ram /copuntie /backup /backupclear /jaillist /getincar\n",str); } if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3) { format(str,2640,"%s"color_red""wh"{0066CC}:: NG :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /a(rrest)1,2,3 /wanted /cuff /tazer\n",str); format(str,2640,"%s"color_red""wh"{0066CC}:: NG :: /frisk /take /ticket (/gov)ernment /deliver /camera /ram /jaillist /a(rrest)1,2,3 /getincar /move1 ( 1 , 2 , 3 )\n",str); } if(PlayerInfo[playerid][pJob] == 1) { format(str,2640,"%s"color_red""wh":: JOB :: /find\n",str); } else if(PlayerInfo[playerid][pJob] == 2) { format(str,2640,"%s"color_red""wh":: JOB :: /free\n",str); } else if(PlayerInfo[playerid][pJob] == 3) { format(str,2640,"%s"color_red""wh":: JOB :: /sex\n",str); } else if(PlayerInfo[playerid][pJob] == 4) { format(str,2640,"%s"color_red""wh":: JOB :: /usedrugs /get drugs /selldrugs\n",str); } else if(PlayerInfo[playerid][pJob] == 5) { format(str,2640,"%s"color_red""wh":: JOB :: /dropcar\n",str); } else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { format(str,2640,"%s"color_red""wh":: JOB :: /paper /papers /live /news [text]\n",str); } else if(PlayerInfo[playerid][pJob] == 7) { format(str,2640,"%s"color_red""wh":: JOB :: /repair /refill /duty\n",str); } else if(PlayerInfo[playerid][pJob] == 8) { format(str,2640,"%s"color_red""wh":: JOB :: /guard\n",str); } else if(PlayerInfo[playerid][pJob] == 9) { format(str,2640,"%s"color_red""wh":: JOB :: /materials /sellgun\n",str); } else if(PlayerInfo[playerid][pJob] == 10) { format(str,2640,"%s"color_red""wh":: JOB :: /sellcar\n",str); } else if(PlayerInfo[playerid][pJob] == 11) { format(str,2640,"%s"color_red""wh":: JOB :: /heal\n",str); } else if(PlayerInfo[playerid][pJob] == 12) { format(str,2640,"%s"color_red""wh":: JOB :: /fight /boxstats\n",str); } else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10|| PlayerInfo[playerid][pJob] == 14) { format(str,2640,"%s"color_red""wh":: JOB :: /fare\n",str); } else if(PlayerInfo[playerid][pJob] == 15) { format(str,2640,"%s"color_red""wh":: JOB :: /papers /bring /deliver\n",str); } else if(PlayerInfo[playerid][pJob] == 16) { format(str,2640,"%s"color_red""wh":: JOB :: /buyprods /sellprods /load\n",str); } else if(PlayerInfo[playerid][pJob] == 17) { format(str,2640,"%s"color_red""wh":: JOB :: /duty /sellpizza\n",str); } else if(PlayerInfo[playerid][pJob] == 18) { format(str,2640,"%s"color_red""wh":: JOB :: /startharvest /stopharvest\n",str); } else if(PlayerInfo[playerid][pJob] == 19) { format(str,2640,"%s"color_red""wh":: JOB :: /startdrugharvest /stopdrugharvest\n",str); } else if(PlayerInfo[playerid][pJob] == 20) { format(str,2640,"%s"color_red""wh":: JOB :: /get drugs /selldrugs\n",str); } else if(PlayerInfo[playerid][pJob] == 21) { format(str,2640,"%s"color_red""wh":: JOB :: /startsweep /stopsweep\n",str); } else if(PlayerInfo[playerid][pJob] == 22) { format(str,2640,"%s"color_red""wh":: JOB :: /smugglemats\n",str); } else if(PlayerInfo[playerid][pJob] == 23) { format(str,2640,"%s"color_red""wh":: JOB :: /creategun /buymats\n",str); } else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { format(str,2640,"%s"color_red""wh"{FF0033}:: HITMAN :: /portable\n",str); } if(PlayerInfo[playerid][pMember] == 11||PlayerInfo[playerid][pLeader] == 11||PlayerInfo[playerid][pMember] == 12||PlayerInfo[playerid][pLeader] == 12){ format(str,2640,"%s"color_red""wh"{00FFFF}:: LESSON :: /startlesson /stoplesson /givelicense\n",str); } if (gTeam[playerid] == 1 || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { format(str,2640,"%s"color_red""wh"{FF00FF}:: LSPD :: (/r)adio (/d)epartments /heal /duty /tracelastcall(/tlc)\n",str); } if (PlayerInfo[playerid][pAdmin] >= 1) { format(str,2640,"%s"color_red""wh"{0000FF}:: ADMIN :: (/a)dmin (/ah)elp\n",str); } format(str,2640,"%s"color_red""wh"{CCFFFF}:: OTHER :: /cellphonehelp /househelp /notehelp /vehiclehelp /renthelp /businesshelp /leaderhelp /fishhelp /cookhelp /irchelp\n",str); ShowPlayerDialog( playerid, 6518, DIALOG_STYLE_MSGBOX, " ", str, "Exit", "" ); } return 1; }
Erorile & Warningurile sunt urmatoarele :C:\Documents and Settings\Administrator\Desktop\RZV Official Server\gamemodes\rzvt.pwn(24103) : error 001: expected token: "-string end-", but found "-identifier-" C:\Documents and Settings\Administrator\Desktop\RZV Official Server\gamemodes\rzvt.pwn(24103) : error 017: undefined symbol "color_red" C:\Documents and Settings\Administrator\Desktop\RZV Official Server\gamemodes\rzvt.pwn(24103) : warning 215: expression has no effect C:\Documents and Settings\Administrator\Desktop\RZV Official Server\gamemodes\rzvt.pwn(24103) : error 001: expected token: ";", but found "-identifier-" C:\Documents and Settings\Administrator\Desktop\RZV Official Server\gamemodes\rzvt.pwn(24103) : fatal error 107: too many error messages on one line
Linia la care imi dau erorile si warningurile este :format(str,2640,"%s"color_red""wh"{009900}:: ACCOUNT :: /rules /stats /newpass /buylevel /upgrade\n",str);
PS: Daca sterg linia asta imi da la urmatoarea linie fiind :format(str,2640,"%s"color_red""wh"{009933}:: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /opendoor(/od)\n",str);
-
Chiar frumoasa asta 5/5
-
Frumoasa 5/5
-
Draguta 4/5
-
Nu prea imi place . Incearca sa faci ceva original si creativ ...
[MAP]Interior LSPD
in Hărţi
Posted
Foarte simpla mapa :-< . Incearca sa faci o mapa adica un oras sau ceva mai greu ...