HELP error 044: positional parameters must precede all named parameters
#1

can you help me ?

C:\Users\admin\Desktop\xsf\SFR3-En.pwn(7213) : error 044: positional parameters must precede all named parameters
C:\Users\admin\Desktop\xsf\SFR3-En.pwn(7213) : warning 215: expression has no effect
C:\Users\admin\Desktop\xsf\SFR3-En.pwn(7213) : error 001: expected token: ";", but found ")"
C:\Users\admin\Desktop\xsf\SFR3-En.pwn(7213) : error 029: invalid expression, assumed zero
C:\Users\admin\Desktop\xsf\SFR3-En.pwn(7213) : fatal error 107: too many error messages on one line

Code :

PI[playerid][P_HOUSEICONS][ PI[playerid][P_HOUSES] ] = CreateDynamicMapIcon(HI[i][H_extPos][0], HI[i][H_extPos][1], HI[i][H_extPos][2], 31, -1, FREEROAM_VW, .playerid = playerid, .streamdistance = 1000.0, style = MAPICON_GLOBAL);
Reply
#2

Код:
PI[playerid][P_HOUSEICONS][ PI[playerid][P_HOUSES] ] = CreateDynamicMapIcon(HI[i][H_extPos][0], HI[i][H_extPos][1], HI[i][H_extPos][2], 31, -1, FREEROAM_VW, -1, 300, MAPICON_GLOBAL);
Reply
#3

You could also change the last parameter from "style = MAPICON_GLOBAL" to ".style = MAPICON_GLOBAL".

This error tells you what to do, you must place all positional parameters before named parameters (positional params. in this case are FREEROAM_VW and all before it, and named parameters are eg. .playerid or .streamdistance).
Reply
#4

Thx br0,now i have so many error like that xD
Reply
#5

Quote:
Originally Posted by NaS
Посмотреть сообщение
You could also change the last parameter from "style = MAPICON_GLOBAL" to ".style = MAPICON_GLOBAL".
Can you explain this a bit please while you're at it? What does this . stuff 'do'.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)