Jump to content

Alecksandru

Membru
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

1 Neutru

About Alecksandru

  • Rank
    Începător

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Mersi pentru ajutor, n-am fost atent.
  2. CMD:gdeposit(playerid, params[]) { if(!IsPlayerConnected(playerid)) return 1; if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); new x = PlayerInfo[playerid][pMember],string[256],amount, item; if(sscanf(params, "s[30]d", item, amount)) return SendClientMessage(playerid, 0xFFFFFFFF, "{570303}Usage: {ffffff}/gdeposit <money/drugs/materials> <amount>"); if(IsPlayerInRangeOfPoint(playerid,50.0,DynamicFactions[x][fcX],DynamicFactions[x][fcY],DynamicFactions[x][fcZ])) { if(strcmp(item,"money",true) == 0) // linia 22290 { if(amount < 1 || amount > 30000000) return SCM(playerid,COLOR_WHITE,"{FFFFFF}Money limit is $1 - $30,000,000."); if(GetPlayerCash(playerid) >= amount) { new oldbalance = DynamicFactions[x][fBank]; DynamicFactions[x][fBank] += amount; GivePlayerCash(playerid, -amount); Update(playerid,pCashx); new str[184]; mysql_format(SQL,str,sizeof(str),"UPDATE `factions` SET `Bank`='%d' WHERE `ID`='%d'",DynamicFactions[x][fBank],x); mysql_tquery(SQL,str,"",""); format(string,sizeof(string), "# %s deposited $%s into faction safe.(old balance: $%s / new balance: $%s)",GetName(playerid),FormatNumber(amount),FormatNumber(oldbalance),FormatNumber(DynamicFactions[x][fBank])); SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_LEADER,string); format(string,sizeof(string), "{ab1138}(Faction): {FFFFFF}You have deposit $%s into faction safe.", FormatNumber(amount)); SCM(playerid, COLOR_WHITE, string); return 1; } else return SendClientMessage(playerid, COLOR_GREY, "Invalid amount."); } else if(strcmp(item,"materials",true) == 0) // linia 22310 { if(amount <= PlayerInfo[playerid][pMats]) { PlayerInfo[playerid][pMats] =PlayerInfo[playerid][pMats]-amount; DynamicFactions[x][fMats] +=amount; format(string,sizeof(string), "# %s deposited %d materials into faction safe.(balance %d materials)",GetName(playerid),amount,DynamicFactions[x][fMats]); SendFamilyMessage(x,COLOR_LEADER,string); format(string,sizeof(string), "{ab1138}(Faction): {FFFFFF}You have deposit %d materials into faction safe.", amount); SCM(playerid, COLOR_WHITE, string); new str[256]; mysql_format(SQL,str,sizeof(str),"UPDATE `factions` SET `Mats`='%d' WHERE `ID`='%d'",DynamicFactions[x][fMats],x); mysql_tquery(SQL,str,"",""); mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Materials`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pMats],PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str,"",""); return 1; } else return SendClientMessage(playerid, COLOR_GREY, "Invalid amount."); } else if(strcmp(item,"drugs",true) == 0) // linia 22329 { if(amount <= PlayerInfo[playerid][pDrugs]) { PlayerInfo[playerid][pDrugs] =PlayerInfo[playerid][pDrugs]-amount; DynamicFactions[x][fDrugs] +=amount; format(string,sizeof(string), "# %s put %d drugs into faction safe.(balance %d drugs)",GetName(playerid),amount,DynamicFactions[x][fDrugs]); SendFamilyMessage(PlayerInfo[playerid][pMember],COLOR_LEADER,string); format(string,sizeof(string), "{ab1138}(Faction): {FFFFFF}You have put %d drugs into faction safe.", amount); SCM(playerid, COLOR_WHITE, string); new str[184]; mysql_format(SQL,str,sizeof(str),"UPDATE `factions` SET `Drugs`='%d' WHERE `ID`='%d'",DynamicFactions[x][fDrugs],x); mysql_tquery(SQL,str,"",""); mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Drugs`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pDrugs],PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str,"",""); return 1; } else return SendClientMessage(playerid, COLOR_GREY, "Invalid amount."); } else return SendClientMessage(playerid, 0xFFFFFFFF, "{570303}Usage: {ffffff}/gdeposit <money/drugs/materials> <amount>"); } return 1; } Erori: C:\Users\Alex\Desktop\New folder (5)\gamemodes\BigZoneGM.pwn(22290) : error 035: argument type mismatch (argument 1) C:\Users\Alex\Desktop\New folder (5)\gamemodes\BigZoneGM.pwn(22310) : error 035: argument type mismatch (argument 1) C:\Users\Alex\Desktop\New folder (5)\gamemodes\BigZoneGM.pwn(22329) : error 035: argument type mismatch (argument 1) Liniile cu erorile le gasiti, ex: // linia 22290
  3. Trebuie sa il bag in Pawno - Include?
  4. Deci, daca imi dau prea multi in banca imi apar pe minus, am mai intrebat persoane si mi-au spus ca limita la numere pe SA:MP este de 2kkk, dar pe alte servere, uni pot avea 10kkk, 20kkk, stie cineva cum as putea sa rezolv? Poza: https://imgur.com/a/OsQd9Ja
  5. Am inteles ce am gresit. Repet mersi mult.
  6. Dar, sa stiu, care era problema? + Mersi foarte mult.
  7. CMD:id(playerid, params[]) { if(IsPlayerConnected(playerid)) { new id[30], giveplayer[150], sstring[256], name[30], find=0, idd; if(sscanf(params, "s[30]", id)) return SendClientMessage(playerid, COLOR_WHITE,"{570303}Usage: {FFFFFF}/id <Name/Playerid>"); { if(IsNumeric(id)) { idd = strval(id); if(IsPlayerConnected(idd)) { if(idd != INVALID_PLAYER_ID) { { if(PlayerInfo[idd][pClanTag] == 0) { format(giveplayer, sizeof(giveplayer),"%s", PlayerInfo[idd][pNormalName]); } if(PlayerInfo[idd][pClanTag] == 1) { format(giveplayer, sizeof(giveplayer),"{FFFF00}%s{FFFFFF}%s", ClanInfo[PlayerInfo[idd][pClan]][cClanTag], PlayerInfo[idd][pNormalName]); } if(PlayerInfo[idd][pClanTag] == 2) { format(giveplayer, sizeof(giveplayer),"%s{FFFF00}%s{FFFFFF}", PlayerInfo[idd][pNormalName], ClanInfo[PlayerInfo[idd][pClan]][cClanTag]); } if(PlayerInfo[idd][pRank] > 0) { if(PlayerInfo[idd][pAdmin] == 0) { if(PlayerInfo[idd][pVipAccount] == 0) { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: %s (rank %d) | Ping: %d | FPS: %d",idd,giveplayer,PlayerInfo[idd][pLevel],NumeFactiune(PlayerInfo[idd][pMember]),PlayerInfo[idd][pRank],GetPlayerPing(idd),PlayerInfo[idd][pFPS]); SendClientMessage(playerid, COLOR_WHITE, sstring); } else { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: %s (rank %d) | Ping: %d | FPS: %d | {CA00FC}[VIP]{FFFFFF}",idd,giveplayer,PlayerInfo[idd][pLevel],NumeFactiune(PlayerInfo[idd][pMember]),PlayerInfo[idd][pRank],GetPlayerPing(idd),PlayerInfo[idd][pFPS]); SendClientMessage(playerid, COLOR_WHITE, sstring); } } else if(PlayerInfo[idd][pAdmin] >= 1 || PlayerInfo[idd][pHelper] >= 1) { if(PlayerInfo[idd][pVipAccount] == 0) { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: %s (rank %d) | Ping: 20 | FPS: 60",idd,giveplayer,PlayerInfo[idd][pLevel],NumeFactiune(PlayerInfo[idd][pMember]),PlayerInfo[idd][pRank]); SendClientMessage(playerid, COLOR_WHITE, sstring); } else { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: %s (rank %d) | Ping: 20 | FPS: 60 | {CA00FC}[VIP]{FFFFFF}",idd,giveplayer,PlayerInfo[idd][pLevel],NumeFactiune(PlayerInfo[idd][pMember]),PlayerInfo[idd][pRank]); SendClientMessage(playerid, COLOR_WHITE, sstring); } } } else { if(PlayerInfo[idd][pAdmin] == 0) { if(PlayerInfo[idd][pVipAccount] == 0) { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: None | Ping: %d | FPS: %d",idd,giveplayer,PlayerInfo[idd][pLevel],GetPlayerPing(idd),PlayerInfo[idd][pFPS]); SendClientMessage(playerid, COLOR_WHITE, sstring); } else { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: None | Ping: %d | FPS: %d | {CA00FC}[VIP]{FFFFFF}",idd,giveplayer,PlayerInfo[idd][pLevel],GetPlayerPing(idd),PlayerInfo[idd][pFPS]); SendClientMessage(playerid, COLOR_WHITE, sstring); } } else if(PlayerInfo[idd][pAdmin] >= 1 || PlayerInfo[idd][pHelper] >= 1) { if(PlayerInfo[idd][pVipAccount] == 0) { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: None | Ping: 20 | FPS: 60",idd,giveplayer,PlayerInfo[idd][pLevel]); SendClientMessage(playerid, COLOR_WHITE, sstring); } else { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: None | Ping: 20 | FPS: 60 | {CA00FC}[VIP]{FFFFFF}",idd,giveplayer,PlayerInfo[idd][pLevel]); SendClientMessage(playerid, COLOR_WHITE, sstring); } } } } } } else return SendClientMessage(playerid, COLOR_WHITE, "Player not connected."); } else { foreach(Player, i) { if(IsPlayerConnected(i)) { if(find < 10) { GetPlayerName(i, name, sizeof(name)); if(strfind(name, id, true) != -1) { { if(PlayerInfo[pClanTag] == 0) { format(giveplayer, sizeof(giveplayer),"%s", PlayerInfo[pNormalName]); } if(PlayerInfo[pClanTag] == 1) { format(giveplayer, sizeof(giveplayer),"{FFFF00}%s{FFFFFF}%s", ClanInfo[PlayerInfo[pClan]][cClanTag], PlayerInfo[pNormalName]); } if(PlayerInfo[pClanTag] == 2) { format(giveplayer, sizeof(giveplayer),"%s{FFFF00}%s{FFFFFF}", PlayerInfo[pNormalName], ClanInfo[PlayerInfo[pClan]][cClanTag]); } if(PlayerInfo[pRank] > 0) { if(PlayerInfo[idd][pAdmin] == 0) { if(PlayerInfo[idd][pVipAccount] == 0) { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: %s (rank %d) | Ping: %d | FPS: %d",idd,giveplayer,PlayerInfo[idd][pLevel],NumeFactiune(PlayerInfo[idd][pMember]),PlayerInfo[idd][pRank],GetPlayerPing(idd),PlayerInfo[idd][pFPS]); SendClientMessage(playerid, COLOR_WHITE, sstring); } else { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: %s (rank %d) | Ping: %d | FPS: %d | {CA00FC}[VIP]{FFFFFF}",idd,giveplayer,PlayerInfo[idd][pLevel],NumeFactiune(PlayerInfo[idd][pMember]),PlayerInfo[idd][pRank],GetPlayerPing(idd),PlayerInfo[idd][pFPS]); SendClientMessage(playerid, COLOR_WHITE, sstring); } } else if(PlayerInfo[idd][pAdmin] >= 1 || PlayerInfo[idd][pHelper] >= 1) { if(PlayerInfo[idd][pVipAccount] == 0) { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: %s (rank %d) | Ping: 20 | FPS: 60",idd,giveplayer,PlayerInfo[idd][pLevel],NumeFactiune(PlayerInfo[idd][pMember]),PlayerInfo[idd][pRank]); SendClientMessage(playerid, COLOR_WHITE, sstring); } else { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: %s (rank %d) | Ping: 20 | FPS: 60 | {CA00FC}[VIP]{FFFFFF}",idd,giveplayer,PlayerInfo[idd][pLevel],NumeFactiune(PlayerInfo[idd][pMember]),PlayerInfo[idd][pRank]); SendClientMessage(playerid, COLOR_WHITE, sstring); } } } else { if(PlayerInfo[idd][pAdmin] == 0) { if(PlayerInfo[idd][pVipAccount] == 0) { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: None | Ping: %d | FPS: %d",idd,giveplayer,PlayerInfo[idd][pLevel],GetPlayerPing(idd),PlayerInfo[idd][pFPS]); SendClientMessage(playerid, COLOR_WHITE, sstring); } else { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: None | Ping: %d | FPS: %d | {CA00FC}[VIP]{FFFFFF}",idd,giveplayer,PlayerInfo[idd][pLevel],GetPlayerPing(idd),PlayerInfo[idd][pFPS]); SendClientMessage(playerid, COLOR_WHITE, sstring); } } else if(PlayerInfo[idd][pAdmin] >= 1 || PlayerInfo[idd][pHelper] >= 1) { if(PlayerInfo[idd][pVipAccount] == 0) { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: None | Ping: 20 | FPS: 60",idd,giveplayer,PlayerInfo[idd][pLevel]); SendClientMessage(playerid, COLOR_WHITE, sstring); } else { format(sstring, sizeof(sstring), "(%d) %s | Level: %d | Faction: None | Ping: 20 | FPS: 60 | {CA00FC}[VIP]{FFFFFF}",idd,giveplayer,PlayerInfo[idd][pLevel]); SendClientMessage(playerid, COLOR_WHITE, sstring); } } } } find ++; } } } } if(find == 0) return SendClientMessage(playerid, COLOR_WHITE, "Player not connected."); } } } return 1; }
  8. https://www.youtube.com/watch?v=r1fWSNKgFEU Sincer, problema asta a aparut cand am bagat Gamemode-ul pe host, dar pana atunci am testat gamemode-ul pe localhost cu inca o persoana. Stie cineva de la ce este aceasta problema si cum poate fi rezolvata?
×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.