Jump to content

Samy Romafia

Membru
  • Posts

    271
  • Joined

  • Last visited

    Never

Posts posted by Samy Romafia

  1. 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.
    

  2. 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.
    

  3. 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

  4. 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);

  5. (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);
    		}
    	}
    }

  6. 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;
    }

  7. stuntman-=!!" post="47402" timestamp="1291475928"]

    Asta inseamna ca ai mai definit odata X,Y si Z

    fa asa mai bine:

    function Camera(playerid, Float:Xxx, Float:Yyy, Float:Zzz, Float:A, Mul)//3531
    {
       SetPlayerCameraLookAt(playerid, Xxx, Yyy, Z);
       SetPlayerCameraPos(playerid, Xxx+ (Mul * floatsin(-A, degrees)), Yyy + (Mul * floatcos(-A, degrees)), Zzz+6);
    }

    Nu era definit ca am cautat in scrit si nu am mai gasit. Oricum multimesc acuma merge

  8. 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

  9. 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.
    
    

  10. Cops_sandu" post="45159" timestamp="1289386925"]

    eu am facut register

    si am facut login rcon si al two rcon

    si cind dau setlevel nu mere: imi zice you must loggeg in to use thin command

    si cind dau /login

    imi zice you create account[register] eu am facut registrearea demult

    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.