SA-MP Forums Archive
Dini Problem... :/ - 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: Dini Problem... :/ (/showthread.php?tid=275358)



Dini Problem... :/ - Captain Price - 09.08.2011

Well, I had a REALLY wierd problem today... Look at the Errors:
PHP Code:
C:\Users\Yuval\Desktop\UberDeathmatch\filterscripts\YCOS.pwn(50) : error 017undefined symbol "dini_Exist"
C:\Users\Yuval\Desktop\UberDeathmatch\filterscripts\YCOS.pwn(50) : error 029invalid expressionassumed zero
C
:\Users\Yuval\Desktop\UberDeathmatch\filterscripts\YCOS.pwn(50) : error 076syntax error in the expression, or invalid function call
C
:\Users\Yuval\Desktop\UberDeathmatch\filterscripts\YCOS.pwn(50) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Look at this ^^^
And now, The script:
pawn Code:
public OnPlayerConnect(playerid)
{
    if(dini_Exist(pFile(playerid)) && dini_Isset(pFile(playerid), "OC"))) CreateVehicle(dini_Int(vFile(pCarid) "Model"), dini_Int(vFile(pCarid), "PosX"), dini_Int(vFile(pCarid), "PosY"), dini_Int(vFile(pCarid), "PosZ"), dini_Int(vFile(pCarid), "Rot"), dini_Int(vFile(pCarid), "Color1"), dini_Int(vFile(pCarid), "Color2"), 100000);
    return 1;
}
I dunno why it like that. H~E~L~P


AW: Dini Problem... :/ - Drebin - 09.08.2011

it's
pawn Code:
if(dini_Exists(...))
not
pawn Code:
if(dini_Exist(...))



Re: AW: Dini Problem... :/ - Captain Price - 09.08.2011

Quote:
Originally Posted by Drebin
View Post
it's
pawn Code:
if(dini_Exists(...))
not
pawn Code:
if(dini_Exist(...))
But now:
PHP Code:
C:\Users\Yuval\Desktop\UberDeathmatch\filterscripts\YCOS.pwn(50) : error 076syntax error in the expression, or invalid function call
C
:\Users\Yuval\Desktop\UberDeathmatch\filterscripts\YCOS.pwn(50) : warning 215expression has no effect
C
:\Users\Yuval\Desktop\UberDeathmatch\filterscripts\YCOS.pwn(50) : error 001expected token";"but found ")"
C:\Users\Yuval\Desktop\UberDeathmatch\filterscripts\YCOS.pwn(50) : error 029invalid expressionassumed zero
C
:\Users\Yuval\Desktop\UberDeathmatch\filterscripts\YCOS.pwn(50) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

pawn Code:
public OnPlayerConnect(playerid)
{
    if(dini_Exists(pFile(playerid)) && dini_Isset(pFile(playerid), "OC")) CreateVehicle(dini_Int(vFile(pCarid) "Model"), dini_Int(vFile(pCarid), "PosX"), dini_Int(vFile(pCarid), "PosY"), dini_Int(vFile(pCarid), "PosZ"), dini_Int(vFile(pCarid), "Rot"), dini_Int(vFile(pCarid), "Color1"), dini_Int(vFile(pCarid), "Color2"), 100000);
    return 1;
}



Re: Dini Problem... :/ - Captain Price - 09.08.2011

Someone?


Re: Dini Problem... :/ - MadeMan - 09.08.2011

pawn Code:
dini_Int(vFile(pCarid) "Model")
Anything wrong here?


AW: Dini Problem... :/ - Drebin - 09.08.2011

pawn Code:
public OnPlayerConnect(playerid)
{
    if(dini_Exists(pFile(playerid)) && dini_Isset(pFile(playerid), "OC"))
    {
        CreateVehicle(dini_Int(vFile(pCarid),"Model"),dini_Int(vFile(pCarid),"PosX"),dini_Int(vFile(pCarid),"PosY"),dini_Int(vFile(pCarid),"PosZ"),dini_Int(vFile(pCarid),"Rot"),dini_Int(vFile(pCarid),"Color1"),dini_Int(vFile(pCarid),"Color2"),100000);
    }
    return 1;
}