One SIMPLE error I need help....
#1

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

Change that closing bracket to opening bracket - {
Reply
#3

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.
Reply
#4

Try with
pawn Код:
}
}
return 1;
}
Reply
#5

Then you are missing a bracket somewhere in your script.
Reply
#6

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
Reply
#7

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");
Reply
#8

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
Reply
#9

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
}
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)