SA-MP Forums Archive
Few warnings that wont let server run - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Few warnings that wont let server run (/showthread.php?tid=172664)



Few warnings that wont let server run - Anthonyx3' - 31.08.2010

Hey guys, im changing some stuff in ravens gm and well somehow i get these warnings....


pawn Код:
:\Documents and Settings\Anthonyx3'\Desktop\ser 0.3\gamemodes\larp.pwn(21004) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Anthonyx3'
\Desktop\ser 0.3\gamemodes\larp.pwn(21005) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Anthonyx3'\Desktop\ser 0.3\gamemodes\larp.pwn(21006) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Anthonyx3'
\Desktop\ser 0.3\gamemodes\larp.pwn(21007) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Anthonyx3'\Desktop\ser 0.3\gamemodes\larp.pwn(21008) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Anthonyx3'
\Desktop\ser 0.3\gamemodes\larp.pwn(21009) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Anthonyx3'\Desktop\ser 0.3\gamemodes\larp.pwn(21010) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Anthonyx3'
\Desktop\ser 0.3\gamemodes\larp.pwn(21014) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Anthonyx3'\Desktop\ser 0.3\gamemodes\larp.pwn(21015) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Anthonyx3'
\Desktop\ser 0.3\gamemodes\larp.pwn(21016) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Anthonyx3'\Desktop\ser 0.3\gamemodes\larp.pwn(21017) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Anthonyx3'
\Desktop\ser 0.3\gamemodes\larp.pwn(21736) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Anthonyx3'\Desktop\ser 0.3\gamemodes\larp.pwn(21737) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Anthonyx3'
\Desktop\ser 0.3\gamemodes\larp.pwn(21738) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Anthonyx3'\Desktop\ser 0.3\gamemodes\larp.pwn(21739) : warning 202: number of arguments does not match definition
They are AddStaticVehicleEx's that already were there, i simply editted the co-ords of the vehicles. anyone know whats problem and how to fix?


Re: Few warnings that wont let server run - Cameltoe - 31.08.2010

Showin us the lines would help.

And btw: A larp edit isn't a roleplay from scratch


Re: Few warnings that wont let server run - Anthonyx3' - 31.08.2010

// off topic this isnt my gm from scratch, this is gm my server uses till i finish other one .

Here are the lines:
pawn Код:
AddStaticVehicleEx(596,1234.7260,-1835.2821,13.1096,1.5175,0,1); // lspd1
    AddStaticVehicleEx(596,1238.7299,-1835.3696,13.1096,2.3937,0,1); // lspd2
    AddStaticVehicleEx(596,1242.6017,-1835.3704,13.1087,0.0098,0,1); // lspd3
    AddStaticVehicleEx(596,1246.5470,-1835.3661,13.1134,358.5971,0,1); // lspd4
    AddStaticVehicleEx(596,1250.1946,-1835.2666,13.1013,0.6984,0,1); // lspd5
    AddStaticVehicleEx(596,1253.7449,-1835.3757,13.1101,359.8930,0,1); // lspd6
    AddStaticVehicleEx(596,1237.4114,-1817.9725,13.1477,179.2275,1,1); // lspd7


    AddStaticVehicleEx(523,1281.1984,-1823.0144,12.9461,91.4081,0,0); // lspdbike1
    AddStaticVehicleEx(523,1281.3966,-1825.1182,12.9524,88.6163,0,0); // lspdbike2AddStaticVehicleEx(523,1558.1632,-1691.8335,5.4596,224.7542,-1,-1,30000); // Police moto 31
    AddStaticVehicleEx(599,1281.0117,-1835.2467,13.5789,89.6096,0,1); // lspdranger1
    AddStaticVehicleEx(599,1281.2646,-1830.3281,13.5983,87.9895,0,1); // lspdranger2


    AddStaticVehicleEx(427,1267.2269,-1795.8816,13.5412,178.6164,0,125); // swatt1
    AddStaticVehicleEx(427,1262.5736,-1796.0303,13.5493,178.8547,0,125); // swatt2AddStaticVehicleEx(427,1538.7837,-1645.9205,6.0225,180.6457,0,125,30000); // SWAT Car 4
    AddStaticVehicleEx(601,1275.2986,-1795.3521,13.1550,181.1943,1,1); // swat1
    AddStaticVehicleEx(601,1271.4258,-1795.3590,13.1618,177.2433,1,1); // swat2AddStaticVehicleEx(601,1526.4545,-1644.8373,5.6493,180.3205,-1,-1,30000); // SWAT Truck 4



Re: Few warnings that wont let server run - Cameltoe - 31.08.2010

Count your argument's ur missing the respawn delay argue
pawn Код:
AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay)



Re: Few warnings that wont let server run - Anthonyx3' - 31.08.2010

Hold up, lemme try that

Edit: Thanks Sir, I should take my time from now on lol

Edit2: Lets conserver space, let me ask my second problem:

When i do /respawnallcars it says.

pawn Код:
Server: Unknown Command
It respawns all cars but it says that message, how do i fix that?

Edit3: This is the command if its needed

pawn Код:
if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/carreset", true) == 0) // by LordMan
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] < 4)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "** you are not authorized to use that command!");
                return 1;
            }
            new bool:unwanted[CAR_AMOUNT];
            for(new player=0; player<MAX_PLAYERS; player++)
            {
                if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
            }
            for(new car = 1; car <= 1850; car++)
            {
                if(!unwanted[car]) SetVehicleToRespawn(car);
            }
            format(string, sizeof(string), "SERVER: All unused cars respawned by %s.", sendername);
            BroadCast(COLOR_WHITE,string);
            format(string, sizeof(string), "[ADMIN]: %s has Respawned All Cars.", sendername);
            ABroadCast(COLOR_LIGHTRED,string, 5);
            GameTextForAll("~w~Every Unused Car ~n~~g~Respawned!",5000,1);
            new y, m, d;
            new h,mi,s;
            getdate(y,m,d);
            gettime(h,mi,s);
            format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Respawned All Unused Cars",d,m,y,h,mi,s,sendername);
            AdminLog(string);
        }
        return 1;
    }



Re: Few warnings that wont let server run - Cameltoe - 31.08.2010

Read here about command processing:

https://sampwiki.blast.hk/wiki/OnPlayerCommandText

That actually describes your problem


Re: Few warnings that wont let server run - Yamoo - 31.08.2010

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
And btw: A larp edit isn't a roleplay from scratch
I was just thinking that myself (let's pretend but).


Re: Few warnings that wont let server run - Anthonyx3' - 31.08.2010

Quote:
Originally Posted by Yamoo
Посмотреть сообщение
I was just thinking that myself (let's pretend but).
Thanks for your spam on my thread, if you actually read the rest you would see I'm editing larp for my temp server till i finish other, thanks your concern

Edit: According to wiki it needs return 1, which i have in the command, or am i missing something?


Re: Few warnings that wont let server run - Cameltoe - 31.08.2010

try returning 1 after admin log


Re: Few warnings that wont let server run - Anthonyx3' - 31.08.2010

pawn Код:
AdminLog(string);
        }
        return 1;
    }
already there 0.o