Seven
Membru-
Posts
136 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Everything posted by Seven
-
T.C. Rezolvat !
-
[pawn] else if(strcmp(x_nr,"7",true) == 0) { SetPlayerSkin(playerid, 7); PlayerInfo[playerid][pChar] = 7; GivePlayerCash(playerid, -50); SendClientMessage(playerid, COLOR_GRAD2, "» Felicitari, ti-ai schimbat Skin-ul. Te costa 50$."); return 1; }[/pawn]
-
Salut. Am si eu o problema cu skin-urile de la factiuni . Deci ca dau fac pe cineva lider la o factiune , ex: armata si ii dau respawn are skin de lider armata ... dar dupa ce intra iar pe server are skin id - 7 [ ] O seara buna in continuare si Sarbatori Fericite! Sa va dau codul /makeleader [pawn] if(strcmp(cmd, "/makeleader", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makeleader [playerid/PartOfName] [Number(1-16)]"); return 1; } new para1; new level; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); if(level > 17 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Dont go below number 0, or above number 17 !"); return 1; } if (PlayerInfo[playerid][pAdmin] >= 6) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255 || PlayerInfo[para1][pPunish] > 0) { SendClientMessage(playerid, COLOR_GREY, " Acel player este deja in Factiune/Familie/Punished!"); return 1; } GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pLeader] = level; format(string, sizeof(string), " Ai fost promovat Lider la factiunea dorita de catre Adminul %s", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), " Ai dat lui %s Lider la factiunea numarul %d.", giveplayer,level); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); if(level == 0) { PlayerInfo[para1][pChar] = 60; PlayerInfo[para1][pRank] = 0; gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 0; return 1; } else if(level == 1) { PlayerInfo[para1][pChar] = 295; } //Police Force else if(level == 2) { PlayerInfo[para1][pChar] = 285; } //FBI/ATF else if(level == 3) { PlayerInfo[para1][pChar] = 287; } //Armata Romana else if(level == 4) { PlayerInfo[para1][pChar] = 228; } //Fire/Ambulance else if(level == 5) { PlayerInfo[para1][pChar] = 115; } //Dragonu else if(level == 6) { PlayerInfo[para1][pChar] = 113; } //Camataru else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Mayor else if(level == 8) { PlayerInfo[para1][pChar] = 294; } //Hitmans else if(level == 9) { PlayerInfo[para1][pChar] = 227; } //Stirile RPG else if(level == 10) { PlayerInfo[para1][pChar] = 61; } //Taxi Cab Company else if(level == 11) { PlayerInfo[para1][pChar] = 171; } //Driving/Flying School else if(level == 12) { PlayerInfo[para1][pChar] = 271; } //Sadoveanu Family else if(level == 13) { PlayerInfo[para1][pChar] = 110; } //Duuianu Family else if(level == 14) { PlayerInfo[para1][pChar] = 104; } //Capone Family else if(level == 15) { PlayerInfo[para1][pChar] = 272; } //Corsicanu else if(level == 16) { PlayerInfo[para1][pChar] = 23; } //Need For Speed else if(level == 17) { PlayerInfo[para1][pChar] = 3; } //Blood Mafia if(level == 0) { gTeam[para1] = 3; PlayerInfo[para1][pTeam] = 3; } else if(level == 1 || level == 2 || level == 3) { gTeam[para1] = 2; PlayerInfo[para1][pTeam] = 2; } else if(level == 4) { gTeam[para1] = 1; PlayerInfo[para1][pTeam] = 1; } else { gTeam[para1] = 15; PlayerInfo[para1][pTeam] = 15; } SetPlayerSkin(para1, PlayerInfo[para1][pChar]); if(level == 0) { PlayerInfo[para1][pRank] = 0; } else { PlayerInfo[para1][pRank] = 6; } }[/pawn]
-
+1 . Chiar aveam nevoie! Sarbatori Fericite.
-
Puteti da T.C. Nu am rezolvat , dar poate voi rezolva ! :sad: Va urez Sarbatori Fericite! :D
-
[pawn]C:\Documents and Settings\alex\Desktop\RPG\gamemodes\RPG.pwn(3547) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Documents and Settings\alex\Desktop\RPG\gamemodes\RPG.pwn(4704) : error 017: undefined symbol "CarInfo" C:\Documents and Settings\alex\Desktop\RPG\gamemodes\RPG.pwn(4704) : error 036: empty statement C:\Documents and Settings\alex\Desktop\RPG\gamemodes\RPG.pwn(4704) : error 017: undefined symbol "h" C:\Documents and Settings\alex\Desktop\RPG\gamemodes\RPG.pwn(4704) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. [/pawn]
-
[pawn] } if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1) {[/pawn]
-
Salut. Am urmat tutorialul lui Gireada pentru a scoate sistemul de vehicul din GM , am facut intocmai ca in tutorial dar mi-a aparut 4 erori [pawn]C:\Documents and Settings\alex\Desktop\RPG\gamemodes\RPG.pwn(3547) : warning 219: local variable "idx" shadows a variable at a preceding level C:\Documents and Settings\alex\Desktop\RPG\gamemodes\RPG.pwn(3822) : error 017: undefined symbol "CarInfo" C:\Documents and Settings\alex\Desktop\RPG\gamemodes\RPG.pwn(3822) : warning 215: expression has no effect C:\Documents and Settings\alex\Desktop\RPG\gamemodes\RPG.pwn(3822) : error 001: expected token: ";", but found "]" C:\Documents and Settings\alex\Desktop\RPG\gamemodes\RPG.pwn(3822) : error 029: invalid expression, assumed zero C:\Documents and Settings\alex\Desktop\RPG\gamemodes\RPG.pwn(3822) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.[/pawn]
-
Gata . M-am ajutat [Pawn] T.C.
-
Buna Seara [Pawn] Ti-am trimis o cerere de adaugare pe Y!M , te rog accept-o.
-
[pawn]C:\Documents and Settings\alex\Desktop\Indungi HD Rp\pawno\include\JunkBuster.inc(3248) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint") C:\Documents and Settings\alex\Desktop\Indungi HD Rp\gamemodes\Indungi.pwn(14517) : warning 219: local variable "playermoney" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings. [/pawn] In ce sa o redefinesc ?? "playermoney" .. am incercat .. alt nume dar mi-a dat 6 erori asa ca am revenit la numele initial.
-
Salut. Am dat o comanda foarte simpla .. [ /santa .. sa iti pui caciula pe cap de mos craciun ] si cand am da compile mi`au aparut 8 erori.... [pawn] C:\Documents and Settings\alex\Desktop\Indungi HD Rp\pawno\include\JunkBuster.inc(3248) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint") C:\Documents and Settings\alex\Desktop\Indungi HD Rp\gamemodes\Indungi.pwn(14522) : warning 219: local variable "playermoney" shadows a variable at a preceding level C:\Documents and Settings\alex\Desktop\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "CapsOnEnd" C:\Documents and Settings\alex\Desktop\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "ConsecutiveCaps" C:\Documents and Settings\alex\Desktop\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "IsInvalid" C:\Documents and Settings\alex\Desktop\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "NumOccurences" C:\Documents and Settings\alex\Desktop\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "TooManyCaps" C:\Documents and Settings\alex\Desktop\Indungi HD Rp\gamemodes\Indungi.pwn(53139) : warning 203: symbol is never used: "TooShortOnEnd" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 8 Warnings.[/pawn]
-
[pawn] } if(PlayerInfo[playerid][pDBanned] == 1) {[/pawn]
-
Salut. Asera am vrut sa adaug comanda /governament si mi-a dat 5 erori .. am rezolvat .. mam chinuit eu pe acolo .. am cautat pe google si am mai ramas cu o eroare... Uitati eroarea: [pawn]C:\DOCUME~1\alex\Desktop\Quit.pwn(36576) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 13444 bytes Code size: 2726260 bytes Data size: 4176436 bytes Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion Total requirements: 6932524 bytes 1 Warning. [/pawn] Si comanda: [pawn] //----------------------------------[government]----------------------------------------------- if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0) { if(IsPlayerConnected(playerid)) { if(gTeam[playerid] != 2) { if(PlayerInfo[playerid][pLeader] != 7) { SendClientMessage(playerid, COLOR_GREY, "** You are not a Cop !"); return 1; } } if(PlayerInfo[playerid][pMuted] == 1) { SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced"); return 1; } if(PlayerInfo[playerid][pRank] < 6) { SendClientMessage(playerid, COLOR_GREY, "** You need to be Rank 6 to be able to use this !"); return 1; } if(PlayerInfo[playerid][pDBanned] == 1) { SendClientMessage(playerid, COLOR_GREY, "** You are Banned From Cop Duty!"); return 1; } new y,m,d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[128]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/gov)ernment [text]"); return 1; } SendClientMessageToAll(COLOR_WHITE, "|___________ Government News Announcement ___________|"); if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "Chief %s: %s", sendername, result); } else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "Deputy Chief %s: %s", sendername, result); } else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Captain %s: %s", sendername, result); } SendClientMessageToAll(COLOR_BLUE, string); format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (government): (%s)",d,m,y,h,mi,s, sendername, result); RadioChatLog(string); } else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "Director %s: %s", sendername, result); } else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "Deputy Director %s: %s", sendername, result); } else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Assistant of Director. %s: %s", sendername, result); } SendClientMessageToAll(COLOR_GRAD5, string); format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (government): (%s)",d,m,y,h,mi,s, sendername, result); RadioChatLog(string); } else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "General %s: %s", sendername, result); } if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "Sub General %s: %s", sendername, result); } if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Captain %s: %s", sendername, result); } SendClientMessageToAll(COLOR_GREEN, string); format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (government): (%s)",d,m,y,h,mi,s, sendername, result); RadioChatLog(string); } else if(PlayerInfo[playerid][pLeader] == 7) { format(string, sizeof(string), "Mayor %s: %s", sendername, result); SendClientMessageToAll(COLOR_GREY, string); format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (government): (%s)",d,m,y,h,mi,s, sendername, result); RadioChatLog(string); } } return 1; }[/pawn] Eu aveam aceasta comanda pe srv dar nu mergea .. eram lider pd si zicea ca nu sunt cop / fbi / ng... desi eram..
-
[pawn]C:\DOCUME~1\alex\Desktop\samp03\GAMEMO~1\Quit.pwn(20604) : error 028: invalid subscript (not an array or too many subscripts): "JBC_CreateVehicle" C:\DOCUME~1\alex\Desktop\samp03\GAMEMO~1\Quit.pwn(20604) : error 076: syntax error in the expression, or invalid function call C:\DOCUME~1\alex\Desktop\samp03\GAMEMO~1\Quit.pwn(20604) : error 029: invalid expression, assumed zero C:\DOCUME~1\alex\Desktop\samp03\GAMEMO~1\Quit.pwn(20604) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. [/pawn]
-
mi-a dat 4 erori [pawn] C:\Documents and Settings\alex\Desktop\samp03\gamemodes\Quit.pwn(20548) : error 017: undefined symbol "CreateCars" C:\Documents and Settings\alex\Desktop\samp03\gamemodes\Quit.pwn(20548) : error 017: undefined symbol "CreateCar" C:\Documents and Settings\alex\Desktop\samp03\gamemodes\Quit.pwn(20548) : error 029: invalid expression, assumed zero C:\Documents and Settings\alex\Desktop\samp03\gamemodes\Quit.pwn(20548) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. [/pawn]
-
Salut. Am vrut sa adaug comanda in gm /veh dar mi-a dat 4 erori. [pawn] C:\Documents and Settings\alex\Desktop\ GF-RP\gamemodes\Quit.pwn(20531) : error 017: undefined symbol "CreatedCars" C:\Documents and Settings\alex\Desktop GF-RP\gamemodes\Quit.pwn(20531) : error 017: undefined symbol "CreatedCar" C:\Documents and Settings\alex\Desktop\ GF-RP\gamemodes\Quit.pwn(20531) : error 029: invalid expression, assumed zero C:\Documents and Settings\alex\Desktop\ GF-RP\gamemodes\Quit.pwn(20531) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.[/pawn] am schimbat CreatedCar si CreateCars cu Veh dar la fel Uitati comanda. [pawn] if(strcmp(cmd, "/veh", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] < 4) { SendClientMessage(playerid, 0xA8A8FFFF, " Ne pare rau , dar tu nu ai accesul la comanda aceasta !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Type / Scrie: /veh [carid] [color1] [color2]"); return 1; } new car; car = strval(tmp); if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, " Vehicle Number can't be below 400 or above 611 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Type / Scrie: /veh [carid] [color1] [color2]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, " Culoarea trebe sa fie intre 0 si 126 !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Type / Scrie: /veh [carid] [color1] [color2]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Color Number can't be below 0 or above 126 !"); return 1; } new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); new carid = CreateVehicle(car, X,Y +3,Z, 0.0, color1, color2, 60000); CreatedCars[CreatedCar] = carid; CreatedCar ++; format(string, sizeof(string), "Ai spawnat masina cu id %d ", carid); SendClientMessage(playerid, COLOR_GREY, string); } return 1; }[/pawn]
-
[pawn]//============================================================================== SetPlayerColor(playerid,COLOR_GRAD2); GetPlayerName(playerid, plname, sizeof(plname)); format(string, sizeof(string), "users/%s.ini", plname); SCM(playerid, 0xFF0000C8, "{FFFFFF}[ {DC0C0C}Quit GF-RP{FFFFFF} ]: Se face conectarea la server. Va rugam sa asteptati..."); if(fexist(string)) { gPlayerAccount[playerid] = 1; } else { gPlayerAccount[playerid] = 0; } return 1; } PUBLIC: JoinChannel(playerid, number, line[]) { if(IsPlayerConnected(playerid)) { if(strcmp(IRCInfo[number][iPassword],line, true ) == 0 ) { JoinChannelNr(playerid, number); } else { SendClientMessage(playerid, COLOR_GREY, " Wrong Channel Password !"); } } return 1; }[/pawn]
-
Scuze de dublu posta. dar am avut o greseala de gramatica..
-
Salut . Am si eu o problema la logare pe server. Atunci cand un player se logheaza se poate logha cu orice parola... Cum pot rezolva aceasta problema?
-
:-j am problema asta de aproape un an jumate.. crezi ca nu mas fi gandit?
-
Cum gasesc acel cod?.. sa sterg barele..?