Jump to content

Diabolik

Membru
  • Posts

    716
  • Joined

  • Last visited

Everything posted by Diabolik

  1. Am adaugat comanda /aa sub forma CMD:aa dar imi da 4 erorii si nustiu cum sa le rezolv , ma ajutati? C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(1713) : error 029: invalid expression, assumed zero C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(1713) : error 017: undefined symbol "cmd_aa" C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(1713) : error 029: invalid expression, assumed zero C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(1713) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. Linia: public OnPlayerCommandPerformed(playerid, cmdtext[], success) { CMD:aa( playerid, params[ ] ) return ATl(playerid, "aa", "Old Airport", 403.447265,2466.154296,16.506214,2.1006,0,0); return 1; }
  2. Frumos si ceva original.10/10
  3. Deci am adaugat comenziile /cmds /about /credits /teles cu BigString , dar dau compilare intru in gm ma loghez dar daca vreau sa scriu /cmds imi zice comanda nu exista dar daca scriu /teles , /credits tot nu merge. if(strcmp(cmdtext,"/cmds",true)==0) { new BigString[1900]; strcat(BigString, "{6EF83C}|=========================================|\n", 1900 ); strcat(BigString, "{6EF83C}| {F81414}General:{6EF83C} /cmds /rules /teles /about.|\n"); strcat(BigString, "{6EF83C}| {F81414}Account:{6EF83C} /register /login.|\n"); strcat(BigString, "{6EF83C}| {F81414}Vehicle:{6EF83C} /fix /lock /unlock /flip /sb /carcolor .|\n"); strcat(BigString, "{6EF83C}| {F81414}Othher: {6EF83C} /para /freeweap /needcash|\n"); strcat(BigString, "{6EF83C}| {F81414}Player: {6EF83C} /mycolor /myweather /news|\n"); strcat(BigString, "{6EF83C}|=========================================|\n", 1900 ); ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_MSGBOX, "{6EF83C}----- {F81414}GENERAL COMMAND {6EF83C}-----", BigString, "-->oK<--",""); return 1; }
  4. LOL:)) Scripoturile_mele.rar (6.6 MB)
  5. Diabolik

    ClubMap V2

    frumoasa mapa 5/5
  6. Dati T.C am rezolvat problema
  7. Deci am bagat un sistem de logare pe server dar cand dau compilare imi da eroriile astea: C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(718) : error 028: invalid subscript (not an array or too many subscripts): "AccountInfo" C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(718) : warning 215: expression has no effect C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(718) : error 001: expected token: ";", but found "]" C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(718) : error 029: invalid expression, assumed zero C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(718) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. Linia: - if(AccountInfo[playerid][LoggedIn] == 2) Cum rezolv problema?
  8. Deci am bagat un sistem de logare pe server dar cand dau compilare imi da eroriile astea: C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(718) : error 028: invalid subscript (not an array or too many subscripts): "AccountInfo" C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(718) : warning 215: expression has no effect C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(718) : error 001: expected token: ";", but found "]" C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(718) : error 029: invalid expression, assumed zero C:\Documents and Settings\BogdaneL\My Documents\sa-mp\Stunt GameSpeed\gamemodes\gsp.pwn(718) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. Linia: - if(AccountInfo[playerid][LoggedIn] == 2) Cum rezolv problema?
  9. C:\Documents and Settings\BogdaneL\My Documents\sa-mp\samp03\gamemodes\HGZ.pwn(C:\Documents and Settings\BogdaneL\My Documents\sa-mp\samp03\gamemodes\HGZ.pwn(10045) : error 021: symbol already defined: "strtok" C:\Documents and Settings\BogdaneL\My Documents\sa-mp\samp03\gamemodes\HGZ.pwn(10060) : error 047: array sizes do not match, or destination array is too small C:\Documents and Settings\BogdaneL\My Documents\sa-mp\samp03\gamemodes\HGZ.pwn(11893) : warning 219: local variable "mod" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 10045 - { 10060return result; Asta reprezinta: 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; } Linia 11893 si 11893 new mod = 100; tmp = strtok(cmdtext, idx); Ce trebuie sa fac sa nu imi apare erorile astea?
  10. Bravo , bun tutorial 10/10
  11. Ia vezi daca iti merge. if(strcmp(cmd, "/takejob", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pJob] == 0) { if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,370.8521,186.9332,1008.3893)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Detective, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Detective, type /accept job."); GettingJob[playerid] = 1; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,347.7374,193.7241,1014.1875)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Lawyer, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Lawyer, type /accept job."); GettingJob[playerid] = 2; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1215.1304,-11.8431,1000.9219)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Whore, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Whore, type /accept job."); GettingJob[playerid] = 3; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2371.9446,2758.4160,10.8203)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Drugs Dealer, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Drugs Dealer, type /accept job."); GettingJob[playerid] = 4; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1109.3318,-1796.3042,16.5938)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Car Jacker, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Car Jacker, type /accept job."); GettingJob[playerid] = 5; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1343.8035,1164.5903,10.8203)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Car Mechanic, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Car Mechanic, type /accept job."); GettingJob[playerid] = 7; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,755.2919,-40.2754,1000.5859)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Bodyguard, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Bodyguard, type /accept job."); GettingJob[playerid] = 8; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,213.8549,-230.5761,1.7786)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Materials Smuggler, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Materials Smuggler, type /accept job."); GettingJob[playerid] = 22; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,755.1172,-26.1718,1000.5859)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Boxer, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Boxer, type /accept job."); GettingJob[playerid] = 12; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1154.2208,-1770.8203,16.5992)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Bus Driver, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Bus Driver, type /accept job."); GettingJob[playerid] = 14; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1343.6149,1164.7780,10.8203)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Trucker, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Trucker, type /accept job."); GettingJob[playerid] = 16; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2101.7620,-1812.5922,13.5547)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Pizza Boy, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Pizza Boy, type /accept job."); GettingJob[playerid] = 17; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-382.6660,-1426.5121,26.2410)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Farmer, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Farmer, type /accept job."); GettingJob[playerid] = 18; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2022.1492,-1108.7837,26.2031)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Drugs Smuggler, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Drugs Smuggler, type /accept job."); GettingJob[playerid] = 20; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1611.5129,-1893.6997,13.5469)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Street sweeper, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Street sweeper, type /accept job."); GettingJob[playerid] = 21; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2152.0581,-2269.9067,13.3085)) { SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Street sweeper, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Street sweeper, type /accept job."); GettingJob[playerid] = 23; } else { SendClientMessage(playerid, COLOR_GREY, " You are not even near a place to get a Job !"); } } else { SendClientMessage(playerid, COLOR_GREY, " You already have a Job, use /quitjob first !"); } }//not connected return 1; }
  12. Diabolik

    Derby

    cat de cat buna 4/5
  13. Diabolik

    Taxi Co.

    frumoasa 3.4/5
  14. if(!strcmp(cmd, "/dance", true)) { if(IsPlayerInAnyVehicle(playerid) == 1) return SendClientMessage(playerid,COLOR_RED," Animations are inaccessible in transport!"); tmp = strtok(cmdtext, idx); animid = strval(tmp); if(!strlen(tmp)||animid < 1 || animid > 4) { SendClientMessage(playerid,COLOR_SYSTEM," Syntax: /dance [1-4]"); return 1; } switch(animid) { case 1: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1); case 2: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2); case 3: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3); case 4: SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4); } return 1; }
  15. Pune: public Fillup() { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new VID; new FillUp; new string[256]; VID = GetPlayerVehicleID(i); FillUp = GasMax - Gas[VID]; if(Refueling[i] == 1) { if(GetPlayerMoney(i) >= FillUp+4) { Gas[VID] += FillUp; FillUp = FillUp * SBizzInfo[3][sbEntranceCost]; format(string,sizeof(string),"* Vehicle filled up, for: $%d.",FillUp); SendClientMessage(i,COLOR_LIGHTBLUE,string); GivePlayerMoney(i, - FillUp); SBizzInfo[3][sbTill] += FillUp; ExtortionSBiz(3, FillUp); Refueling[i] = 0; } else { format(string,sizeof(string),"* Not enough Money to refill, it costs $%d to fill your Vehicle.",FillUp); SendClientMessage(i,COLOR_LIGHTBLUE,string); } } } } return 1; } if(strcmp(cmd, "/fill", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsAtGasStation(playerid)) { if(Gas[idcar] <= 99) { TogglePlayerControllable(playerid, 0); GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Re-Fueling Vehicle, please wait",2000,3); SetTimer("Fillup",RefuelWait,0); Refueling[playerid] = 1; } else { GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~Gas can is full",2000,3); } } else { SendClientMessage(playerid,COLOR_GREY," You're not at a Gas Station!"); } } return 1; } forward Fillup();
  16. Incearca sa pui: if(moneys < 30000 || moneys > 1000000) { SendClientMessage(playerid, COLOR_GREY, " Contract money must be atleast $30.000, and not more then $1.000.000!"); return 1; }
  17. Diabolik

    TCC

    nice acum o adaug pe server
  18. PE plaja LS . frumos 10/10
  19. Diabolik

    Stunt Map

    buna cat de cat 3/5
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.