Help me please,it's urgent.
#1

Ok so i made a couple of updates to my GM and now i get all of this stuff,that i have no idea how to fix
I tried SAMP Wiki but didn't find nothing about these errors:
So here they are:
pawn Код:
C:\Users\Ragnar\Desktop\nrrp\nrrp\gamemodes\nrrp.pwn(1323) : warning 202: number of arguments does not match definition
C:\Users\Ragnar\Desktop\nrrp\nrrp\gamemodes\nrrp.pwn(2202 -- 2210) : error 029: invalid expression, assumed zero
C:\Users\Ragnar\Desktop\nrrp\nrrp\gamemodes\nrrp.pwn(2210 -- 2211) : error 029: invalid expression, assumed zero
C:\Users\Ragnar\Desktop\nrrp\nrrp\gamemodes\nrrp.pwn(2214) : error 029: invalid expression, assumed zero
C:\Users\Ragnar\Desktop\nrrp\nrrp\gamemodes\nrrp.pwn(5621) : warning 202: number of arguments does not match definition
C:\Users\Ragnar\Desktop\nrrp\nrrp\gamemodes\nrrp.pwn(5621) : warning 202: number of arguments does not match definition
C:\Users\Ragnar\Desktop\nrrp\nrrp\gamemodes\nrrp.pwn(5621) : warning 202: number of arguments does not match definition
C:\Users\Ragnar\Desktop\nrrp\nrrp\gamemodes\nrrp.pwn(5621) : warning 202: number of arguments does not match definition
C:\Users\Ragnar\Desktop\nrrp\nrrp\gamemodes\nrrp.pwn(5621) : warning 202: number of arguments does not match definition
C:\Users\Ragnar\Desktop\nrrp\nrrp\gamemodes\nrrp.pwn(5621) : warning 202: number of arguments does not match definition
C:\Users\Ragnar\Desktop\nrrp\nrrp\gamemodes\nrrp.pwn(11231) : warning 202: number of arguments does not match definition
C:\Users\Ragnar\Desktop\nrrp\nrrp\gamemodes\nrrp.pwn(11237) : warning 202: number of arguments does not match definition
C:\Users\Ragnar\Desktop\nrrp\nrrp\gamemodes\nrrp.pwn(11407) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
And the lines:

Line 1323:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 20, 1957.8063,-1986.2390,-55.3943,91.2021))
            {
                PlayerInfo[playerid][pVehVW] = GetPlayerVirtualWorld(playerid);
                SetVehicleVirtualWorld(PlayerInfo[playerid][pVeh], PlayerInfo[playerid][pVehVW]);
            }
Line 2202 -- 2210:
pawn Код:
format(string, sizeof(string), "%d|%f|%f|%f|%f|%f|%f\r\n",
        ObjectInfo[idx][oModel],
        ObjectInfo[idx][oX],
        ObjectInfo[idx][oY],
        ObjectInfo[idx][oZ],
        ObjectInfo[idx][oRX],
        ObjectInfo[idx][oRY],
        ObjectInfo[idx][oRZ],
        if(idx == 1)
Line 2210 -- 2211:
pawn Код:
if(idx == 1)
        {
            file = fopen("cobjects.cfg", io_write);
        }
Line 2214:
pawn Код:
else
        {
            file = fopen("cobjects.cfg", io_append);
        }
Line 5621:
pawn Код:
DestroyObject(C4[playerid], bx[playerid], by[playerid], bz[playerid]-1, -87.6624853592, 0.000000, 0.000000);
Line 11231:
pawn Код:
SetVehiclePos(vehicleid, 1957.8063,-1986.2390,-55.3943,91.2021);
Line 11237:
pawn Код:
SetPlayerPos(playerid, 1957.8063,-1986.2390,-55.3943,91.2021);
Line 11407:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 20, 1957.8063,-1986.2390,-55.3943,91.2021)) // Garages
    {
        new idx;
        idx = GetPlayerVirtualWorld(playerid)-500;
        if(!done && idx < MAX_GARAGES && GarageInfo[idx][gLevel])
I really hope that there is someone who can help me,i've been trying to fix my GM for 3 days now :X
Reply
#2

Line 1323:

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 20, 1957.8063,-1986.2390,-55.3943))
{
    PlayerInfo[playerid][pVehVW] = GetPlayerVirtualWorld(playerid);                
    SetVehicleVirtualWorld(PlayerInfo[playerid][pVeh], PlayerInfo[playerid][pVehVW]);
}
But the others i cant get what the problem is :\ probably you got your includes messed up so redownload them

i hope this helped
Reply
#3

Line 1323:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 20, 1957.8063,-1986.2390,-55.3943))
            {
                PlayerInfo[playerid][pVehVW] = GetPlayerVirtualWorld(playerid);
                SetVehicleVirtualWorld(PlayerInfo[playerid][pVeh], PlayerInfo[playerid][pVehVW]);
            }
Line 2202 -- 2210:
pawn Код:
format(string, sizeof(string), "%d|%f|%f|%f|%f|%f|%f\r\n",
        ObjectInfo[idx][oModel],
        ObjectInfo[idx][oX],
        ObjectInfo[idx][oY],
        ObjectInfo[idx][oZ],
        ObjectInfo[idx][oRX],
        ObjectInfo[idx][oRY],
        ObjectInfo[idx][oRZ]);
        if(idx == 1)
Line 5621:
pawn Код:
DestroyObject(C4[playerid]);
Line 11231:
pawn Код:
SetVehiclePos(vehicleid, 1957.8063,-1986.2390,-55.3943);
Line 11237:
pawn Код:
SetPlayerPos(playerid, 1957.8063,-1986.2390,-55.3943);
Line 11407:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 20, 1957.8063,-1986.2390,-55.3943) // Garages
    {
        new idx;
        idx = GetPlayerVirtualWorld(playerid)-500;
        if(!done && idx < MAX_GARAGES && GarageInfo[idx][gLevel])
that should 98% works as i guessed most of the corrected codes.
Reply
#4

pawn Код:
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
kirollos you are a genius brother i love you!!! xD
Reply
#5

if it is you who made it, you should have known what you made wrong..
Reply
#6

Quote:
Originally Posted by CrazyChoco
Посмотреть сообщение
if it is you who made it, you should have known what you made wrong..
Yes now i see i added one extra coordinate on most of the cases lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)