SA-MP Forums Archive
One SIMPLE error I need help.... - 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: One SIMPLE error I need help.... (/showthread.php?tid=139578)



One SIMPLE error I need help.... - DarkPower - 05.04.2010

pawn Код:
if(pickupid == vipkuca)
  {
    if(Pinfo[playerid][Vip_Level])
    } // line 3607
     SetPlayerPos(playerid,-2640.762939,1406.682006,906.460937);
       SetPlayerInterior(playerid,3);
       SetPlayerVirtualWorld(playerid,5);
     GameTextForPlayer(playerid,"~w~donator klub",2500,5);
    }
    return 1;
}
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\Extre mePower.pwn(3607) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: One SIMPLE error I need help.... - Correlli - 05.04.2010

Change that closing bracket to opening bracket - {


Re: One SIMPLE error I need help.... - DarkPower - 05.04.2010

i try that few time...And after i did that...

Код:
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(1014) : error 004: function "UpdateTime" is not implemented
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3040) : error 017: undefined symbol "dcmd_setvip"
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3041) : error 017: undefined symbol "dcmd_viplevel"
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3042) : error 017: undefined symbol "dcmd_refuel"
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3043) : error 017: undefined symbol "dcmd_buyfuel"
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3044) : error 017: undefined symbol "dcmd_usefuel"
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3045) : error 017: undefined symbol "dcmd_rob"
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3046) : error 017: undefined symbol "dcmd_napunisve"
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3047) : error 017: undefined symbol "dcmd_me"
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3207) : error 004: function "PlayerToPoint" is not implemented
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3221) : error 004: function "PlayerToPoint" is not implemented
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3266) : error 004: function "PlayerToPoint" is not implemented
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3289) : error 004: function "PlayerToPoint" is not implemented
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3324) : error 004: function "PlayerToPoint" is not implemented
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3405) : error 004: function "PlayerToPoint" is not implemented
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3489) : error 017: undefined symbol "encode_lights"
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3607) : error 029: invalid expression, assumed zero
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3619) : warning 225: unreachable code
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3619) : error 029: invalid expression, assumed zero
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3619) : error 004: function "OnVehicleMod" is not implemented
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3624) : warning 225: unreachable code
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3624) : error 029: invalid expression, assumed zero
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3624) : error 004: function "OnVehiclePaintjob" is not implemented
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3629) : warning 225: unreachable code
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3629) : error 029: invalid expression, assumed zero
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3629) : error 004: function "OnVehicleRespray" is not implemented
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3635) : warning 225: unreachable code
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3635) : error 029: invalid expression, assumed zero
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3635) : error 004: function "JB_OnPlayerInteriorChange" is not implemented
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3640) : warning 225: unreachable code
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3640) : error 029: invalid expression, assumed zero

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.



Re: One SIMPLE error I need help.... - [MWR]Blood - 05.04.2010

Try with
pawn Код:
}
}
return 1;
}



Re: One SIMPLE error I need help.... - Correlli - 05.04.2010

Then you are missing a bracket somewhere in your script.


Re: One SIMPLE error I need help.... - DarkPower - 05.04.2010

Quote:
Originally Posted by ikarus[PSYCHO
]
Try with
pawn Код:
}
}
return 1;
}
I try that too, before and i get

Код:
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3607) : error 029: invalid expression, assumed zero
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(3614) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
BTW i have onemore little problem....Its warnning....

Код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,".:: EFS ::. Provjera donator statusa...",string2,"OK","Odustani",Pinfo[playerid][Vip_Level]);
On that line i get this warrning...

Код:
C:\Users\NASTIE\Desktop\ExtremeFun\gamemodes\ExtremePower.pwn(9512) : warning 202: number of arguments does not match definition



Re: One SIMPLE error I need help.... - [MWR]Blood - 05.04.2010

Try that:
pawn Код:
if(pickupid == vipkuca)
  {
    if(Pinfo[playerid][Vip_Level])
    {
     SetPlayerPos(playerid,-2640.762939,1406.682006,906.460937);
       SetPlayerInterior(playerid,3);
       SetPlayerVirtualWorld(playerid,5);
     GameTextForPlayer(playerid,"~w~donator klub",2500,5);
    }
else
{
SendClientMessage(playerid,red,"You are not VIP!");
}

    return 1;
}
And about the warning:
pawn Код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,".:: EFS ::. Provjera donator statusa...",string2,"OK","Odustani");



Re: One SIMPLE error I need help.... - DarkPower - 05.04.2010

Quote:
Originally Posted by ikarus[PSYCHO
]
Try that:
pawn Код:
if(pickupid == vipkuca)
  {
    if(Pinfo[playerid][Vip_Level])
    {
     SetPlayerPos(playerid,-2640.762939,1406.682006,906.460937);
       SetPlayerInterior(playerid,3);
       SetPlayerVirtualWorld(playerid,5);
     GameTextForPlayer(playerid,"~w~donator klub",2500,5);
    }
else
{
SendClientMessage(playerid,red,"You are not VIP!");
}

    return 1;
}
And about the warning:
pawn Код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,".:: EFS ::. Provjera donator statusa...",string2,"OK","Odustani");
Now i dont get any of errors or warnings but your code whit VIP, you forrgot put onemore } but i put
pawn Код:
if(pickupid == vipkuca)
  {
    if(Pinfo[playerid][Vip_Level])
    {
     SetPlayerPos(playerid,-2640.762939,1406.682006,906.460937);
       SetPlayerInterior(playerid,3);
       SetPlayerVirtualWorld(playerid,5);
     GameTextForPlayer(playerid,"~w~donator klub",2500,5);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Ti nisi donator!");
    }
    }
    return 1;
}
and evrything work...Tnx


Re: One SIMPLE error I need help.... - aircombat - 05.04.2010

just a note , its : if(Pinfo[playerid][Vip_Level] == level) not if(Pinfo[playerid][Vip_Level]) so its like :
if(Pinfo[playerid][Vip_Level] >= 2)
{
//ur code
}



Re: One SIMPLE error I need help.... - DarkPower - 05.04.2010

Quote:
Originally Posted by [AC
Etch ]
just a note , its : if(Pinfo[playerid][Vip_Level] == level) not if(Pinfo[playerid][Vip_Level]) so its like :
if(Pinfo[playerid][Vip_Level] >= 2)
{
//ur code
}
tny alot, now i can make commands whit levels