Jump to content

Samy Romafia

Membru
  • Posts

    271
  • Joined

  • Last visited

    Never

Everything posted by Samy Romafia

  1. cand intru in map editor se blocheaza tot :/
  2. Adica trebuie sa pun unu din coduriele alea?
  3. Am vasut pe samp com o descutie de cum sa faci sa pui objectele noi pe MTA map editor. Font: http://forum.sa-mp.com/showthread.php?t=196205 Prima data am incercat sa fac cum spune tutorialul, dar nu am reusit. Am citit mai jos ca se poate descarca sursa direct facuta. Am puso unde trebuia pusa dar.... tot nu merge. Cum pot sa rezolv. (Windows 7)
  4. good dar :/ imi mai da un warning la C:\Users\proprietario\Desktop\Drifting Sunting Racing RC6\gamemodes\DSRClan.pwn(1553) : warning 219: local variable "Index" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Warning.
  5. Am o problema la comanda asta; /*CarColour*/ CMD:cc(playerid, params[]) { new C1, C2, tmp, tmp2, Index; tmp = strtok(params, Index); tmp2 = strtok(params, Index); //1553 C1 = strval(tmp); C2 = strval(tmp2); if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, -1, "Usage: /CarColor < Color 1 > < Color 2 >"); ChangeVehicleColor(GetPlayerVehicleID(playerid), C1, C2); return 1; } C:\Users\proprietario\Desktop\Drifting Sunting Racing RC6\gamemodes\DSRClan.pwn(1553) : warning 219: local variable "Index" shadows a variable at a preceding level C:\Users\proprietario\Desktop\Drifting Sunting Racing RC6\gamemodes\DSRClan.pwn(1553) : error 006: must be assigned to an array C:\Users\proprietario\Desktop\Drifting Sunting Racing RC6\gamemodes\DSRClan.pwn(1553) : error 006: must be assigned to an array C:\Users\proprietario\Desktop\Drifting Sunting Racing RC6\gamemodes\DSRClan.pwn(1554) : error 035: argument type mismatch (argument 1) C:\Users\proprietario\Desktop\Drifting Sunting Racing RC6\gamemodes\DSRClan.pwn(1554) : error 035: argument type mismatch (argument 1) C:\Users\proprietario\Desktop\Drifting Sunting Racing RC6\gamemodes\DSRClan.pwn(1555) : error 035: argument type mismatch (argument 1) C:\Users\proprietario\Desktop\Drifting Sunting Racing RC6\gamemodes\DSRClan.pwn(1553) : warning 204: symbol is assigned a value that is never used: "tmp2" C:\Users\proprietario\Desktop\Drifting Sunting Racing RC6\gamemodes\DSRClan.pwn(1553) : warning 204: symbol is assigned a value that is never used: "tmp" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors.
  6. Am facut asa: new string[2][128]; format(string[0], 128,">> \"%d\" seconds till \"%s\" named race starts! Type \"/joinrace\" to join the race.", CountAmount, RaceName); format(string[1], 128,">> Mancano \"%d\" all'inizio della gara \"%s\"! Scrivi \"/joinrace\" per partecipare alla gara.", CountAmount, RaceName); SendClientMessageToAllLang(GREEN, string[0], string[1]); Acuma incerc
  7. 3868) : error 035: argument type mismatch (argument 6) Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. Line: SendClientMessageToAllLang(GREEN, string[0], string[1], "", CountAmount, RaceName);
  8. Samy Romafia

    Warn

    (3978) : warning 202: number of arguments does not match definition new string[128] ; format(string, sizeof(string),">> \"%d\" seconds till \"%s\" named race starts! Type \"/joinrace\" to join the race.",">> Mancano \"%d\" all'inizio della gara \"%s\"! Scrivi \"/joinrace\" per partecipare alla gara.", CountAmount, RaceName);//,">> Mancano \"%d\" all'inizio della gara \"%s\"! Scrivi \"/joinrace\" per partecipare alla gara." SendClientMessageToAllLang(GREEN, string);//3978 SendClientMessageToAllLang(color, langeng[], langpl[], define1[]="", str=0,str2=0, define2[]="", define3[]="", define4[]="",str3=0) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { SendClientMessageLang(i, color,langeng, langpl, define1, str, str2, define2, define3, define4,str3); } } }
  9. Daca nu sti script lasate frate: public OnPlayerCommandText(playerid, cmdtext[])//Thx to Samy { if(strcmp(cmd, "/event", true) == 0) { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 4) { new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /event [heal,healall,gethere,giveweapon]"); return 1; } if(strcmp(x_nr,"heal",true) == 0) { for(new i; i < GetMaxPlayers(); i++) { if (ProxDetectorS(5.0, playerid, i)) { if(IsPlayerConnected(i)) { new amount; tmp = strtok(cmdtext, idx); amount = strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid,COLOR_SYSTEM,"USAGE: /event heal [hp]"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); SetPlayerHealth(i, amount); format(string, sizeof(string), "[EVENT]: %s has setted everyones near him health at %d.",sendername,amount); SendClientMessageToAll(COLOR_LIGHTRED, string); return 1; } } } } } if(strcmp(x_nr,"healall",true) == 0) { for(new i; i < GetMaxPlayers(); i++) { if(IsPlayerConnected(i)) { new amount; tmp = strtok(cmdtext, idx); amount = strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid,COLOR_SYSTEM,"USAGE: /event healall [hp]"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); SetPlayerHealth(i, amount); format(string, sizeof(string), "[EVENT]: %s has setted everyones health at %d.",sendername,amount); SendClientMessageToAll(COLOR_LIGHTRED, string); return 1; } } } if(strcmp(x_nr,"gethere",true) == 0) { for(new i; i < GetMaxPlayers(); i++) { if(IsPlayerConnected(i)) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X,Y,Z); GetPlayerName(playerid, sendername, sizeof(sendername)); if(GetPlayerState(i) == 2) { SetPlayerPos(i, X,Y+4,Z); } else { SetPlayerPos(i, X,Y+2,Z); } format(string, sizeof(string), "[EVENT]: %s had telported %d players at him.",sendername,PlayersOnline); SendClientMessageToAll(COLOR_LIGHTRED, string); return 1; } } } if(strcmp(x_nr,"givegun",true) == 0) { for(new i; i < GetMaxPlayers(); i++) { if(IsPlayerConnected(i)) { new gun,ammo; tmp = strtok(cmdtext, idx); gun = strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /event givegun [gunid] [ammo]"); SendClientMessage(playerid, COLOR_GRAD1, "Melee I: Golf Club (2) | Nitestick (3) | Knife (4) | Baseball Bat (5)"); SendClientMessage(playerid, COLOR_GRAD1, "Melee I: Shovel (6) | Pool Cue (7) | Katana (8) | Chainsaw (9)"); SendClientMessage(playerid, COLOR_GRAD2, "Melee II: Purple Dildo (10) | Small White Vibrator (11) | Large White Vibrator (12)"); SendClientMessage(playerid, COLOR_GRAD2, "Melee II: Silver Vibrator (13) | Flowers (14) | Cane (15)"); SendClientMessage(playerid, COLOR_GRAD3, "Pistol: 9MM (22) | Sillenced 9MM (23) | Deagle (24)"); SendClientMessage(playerid, COLOR_GRAD4, "Shotgun: Shotgun (25)"); SendClientMessage(playerid, COLOR_GRAD5, "SMG: MP5 (29)"); SendClientMessage(playerid, COLOR_GRAD6, "Assault: AK-47 (30) | M4 (31)"); SendClientMessage(playerid, COLOR_WHITE, "Rifle: Country Rifle (33) | Sniper Rifle (34)"); return 1; } if(gun == 1 || gun >= 16 && gun <= 21 || gun == 26 || gun == 27 || gun == 28 || gun == 32 || gun >= 35 && gun <= 46) { SendClientMessage(playerid, COLOR_WHITE, "The WeaponID is wrong !"); return 1; } tmp = strtok(cmdtext, idx); ammo = strval(tmp); if(ammo <1 ||ammo > 999) { SendClientMessage(playerid, COLOR_GRAD1, "dont go below 1 or above 999 bullets!"); return 1; } new ftext[50]; if(gun == 1) { ftext = "Brass Knuckles"; } else if(gun == 2) { ftext = "Golf Club"; } else if(gun == 3) { ftext = "NightStick"; } else if(gun == 4) { ftext = "Knife"; } else if(gun == 5) { ftext = "Baseball Bat"; } else if(gun == 6) { ftext = "Shovel"; } else if(gun == 7) { ftext = "Pool Cue"; } else if(gun == 8) { ftext = "Katana"; } else if(gun == 9) { ftext = "Chainsaw"; } else if(gun == 10) { ftext = "Purple Dildo"; } else if(gun == 11) { ftext = "Small White Vibrator"; } else if(gun == 12) { ftext = "Large White Vibrator"; } else if(gun == 13) { ftext = "Silver Vibrator"; } else if(gun == 14) { ftext = "Flowers"; } else if(gun == 15) { ftext = "Cane"; } else if(gun == 16) { ftext = "Grenade"; } else if(gun == 17) { ftext = "Tear Gas"; } else if(gun == 18) { ftext = "Molotov Cocktail"; } else if(gun == 22) { ftext = "9MM"; } else if(gun == 23) { ftext = "Silenced 9mm"; } else if(gun == 24) { ftext = "Desert Eagle"; } else if(gun == 25) { ftext = "Shotgun"; } else if(gun == 26) { ftext = "Sawn-off Shotgun"; } else if(gun == 27) { ftext = "Combat Shotgun"; } else if(gun == 28) { ftext = "Micro SMG"; } else if(gun == 29) { ftext = "MP5"; } else if(gun == 30) { ftext = "AK-47"; } else if(gun == 31) { ftext = "M4"; } else if(gun == 32) { ftext = "Tec9"; } else if(gun == 33) { ftext = "Country Rifle"; } else if(gun == 34) { ftext = "Sniper Rifle"; } else if(gun == 35) { ftext = "Rocket Launcher"; } else if(gun == 36) { ftext = "HS Rocket Launcher"; } else if(gun == 37) { ftext = "Flamethrower"; } else if(gun == 38) { ftext = "Minigun"; } else if(gun == 41) { ftext = "Spraycan"; } else if(gun == 42) { ftext = "Fire Extinguisher"; } else if(gun == 43) { ftext = "Camera"; } else if(gun == 44) { ftext = "Nightvision Goggle"; } else if(gun == 45) { ftext = "Thermal Goggles"; } else if(gun == 46) { ftext = "Parachutte"; } GetPlayerName(playerid, sendername, sizeof(sendername)); GivePlayerWeapon(i, gun, ammo); format(string, sizeof(string), "[EVENT]: %s has given a %s with %d ammo.",sendername,ftext,ammo); SendClientMessageToAll(COLOR_LIGHTRED, string); return 1; } } } } } return 1; } return 0; }
  10. Nu era definit ca am cautat in scrit si nu am mai gasit. Oricum multimesc acuma merge
  11. function Camera(playerid, Float:X, Float:Y, Float:Z, Float:A, Mul)//3531 { SetPlayerCameraLookAt(playerid, X, Y, Z); SetPlayerCameraPos(playerid, X + (Mul * floatsin(-A, degrees)), Y + (Mul * floatcos(-A, degrees)), Z+6); } (3531) : warning 219: local variable "X" shadows a variable at a preceding level (3531) : warning 219: local variable "Y" shadows a variable at a preceding level (3531) : warning 219: local variable "Z" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 3 Warnings. Chiar nu inteleg cum sa rez<olv. Am pus: new Float:X, Float:Y, Float:Z, Float:Angle; Si tot imi da warning
  12. Linea asta genereaza eroarea: SendClientMessageLang(playerid, RED, "<!> You are not in a race!","<!> Non sei in una gara!"); Si aici este eroarea SendClientMessageLang(playerid, color, langeng[], langpl[], define1[]="", str=0,str2=0, define2[]="", define3[]="", define4[]="",str3=0) { new tmpbuf[256]; if(lang[playerid] == 0)format(tmpbuf, sizeof(tmpbuf), langeng, define1, str,str2, define2, define3, define4, str3); if(lang[playerid] == 1)format(tmpbuf, sizeof(tmpbuf), langpl, define1, str,str2, define2, define3, define4, str3); SendClientMessage(playerid, color, tmpbuf); }//1469 (1469) : warning 209: function "SendClientMessageLang" should return a value Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Warning.
  13. Citeste pe Wiki limit. Ai o limita la textdrawuri
  14. Stiu...... Iam spus poate daca mai face o versiune mai noua o sa puna si rhino sparrow rc etc...
  15. Problema probabil la sistem de admin schimbal sau dai un reinstall
×
×
  • 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.