PDA

View Full Version : Help


antonio600x
30/08/2011, 06:54 AM
ERROR:
C:\Documents and Settings\Administrator\Desktop\SAMP SERVER\gamemodes\gmbeta.pwn(135) : error 035: argument type mismatch (argument 2)


public OnPlayerSpawn(playerid)
{
if (PlayerInfo[playerid][pSkin] > 1)
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SendClientMessage(playerid, COL_GREEN, "Vas skin uspjesno ucitan."); //LINE 135
}
return 1;
}

=WoR=Varth
30/08/2011, 07:17 AM
Show us your COL_GREEN define.

Horrible
30/08/2011, 07:19 AM
ERROR:
C:\Documents and Settings\Administrator\Desktop\SAMP SERVER\gamemodes\gmbeta.pwn(135) : error 035: argument type mismatch (argument 2)


public OnPlayerSpawn(playerid)
{
if (PlayerInfo[playerid][pSkin] > 1)
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
SendClientMessage(playerid, COL_GREEN, "Vas skin uspjesno ucitan."); //LINE 135
}
return 1;
}
waht line get that error?
but i guess this is the problem
make sure
#define COL_GREEN 0x33AA33AA
if i help you give me rep :D

[MG]Dimi
30/08/2011, 07:22 AM
waht line get that error?
but i guess this is the problem
make sure
#define COL_GREEN 0x33AA33AA
if i help you give me rep :D

You are patetic. Just posting useless and ask for reputation? He clearly stated which line is 135 Where error is. varthshenon already told him and your post is just useless. -.-

antonio600x
30/08/2011, 07:25 AM
#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"
#define COL_LIGHTBLUE "{00CED1}"
#define COL_KHAKI "{0x999900AA}"


and gow to move players icon on map??

[MG]Dimi
30/08/2011, 07:27 AM
You cant make it like that. Those are Hex. Rplace them with these:
#define COL_WHITE 0xFFFFFFFF
#define COL_RED 0xF81414FF
#define COL_GREEN 0x00FF22FF
#define COL_LIGHTBLUE 0x00CED1FF
#define COL_KHAKI 0x999900AA

[MWR]Blood
30/08/2011, 07:29 AM
#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"
#define COL_LIGHTBLUE "{00CED1}"
#define COL_KHAKI "{0x999900AA}"


and gow to move players icon on map??

You are defining Hex colors.
And as well remove the "{.
It's only needed if you are going to use different colors in a single message.

#define COL_RED 0xFF0000FF
#define COL_GREEN 0x00CD1EFF
#define COL_LIGHTBLUE 0x00F4F4FF
#define COL_KHAKI 0x999900AA

=WoR=Varth
30/08/2011, 07:32 AM
For future learn:http://wiki.sa-mp.com/wiki/Colors_List
Map icon:http://wiki.sa-mp.com/wiki/SetPlayerMapIcon

antonio600x
30/08/2011, 07:44 AM
C:\Documents and Settings\Administrator\Desktop\SAMP SERVER\gamemodes\gmbeta.pwn(87) : error 017: undefined symbol "ShowPlayerMakers"
C:\Documents and Settings\Administrator\Desktop\SAMP SERVER\gamemodes\gmbeta.pwn(107) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\Administrator\Desktop\SAMP SERVER\gamemodes\gmbeta.pwn(107) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\SAMP SERVER\gamemodes\gmbeta.pwn(107) : error 001: expected token: ";", but found "-string-"
C:\Documents and Settings\Administrator\Desktop\SAMP SERVER\gamemodes\gmbeta.pwn(107) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\SAMP SERVER\gamemodes\gmbeta.pwn(107) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\Administrator\Desktop\SAMP SERVER\gamemodes\gmbeta.pwn(107) : fatal error 107: too many error messages on one line

whend define yours colors

[MG]Dimi
30/08/2011, 07:47 AM
SHow us from line 80 to line 95 and from line 100 to line 115.

[MWR]Blood
30/08/2011, 08:13 AM
You are using those colors as hex ones.
You have to make another defines for them.
Here are my colors:

#define lred "{FF2800}"
#define lgreen "{0FE700}"
#define cblue "{00E1FF}"
#define lyellow2 "{F5E000}"
#define lyellow "{F5FF00}"
#define lgreen2 "{B9FF00}"
#define lorange "{FFAF00}"
#define lpurple "{8433CD}"
#define lwhite "{FFFFFF}"
#define lgrey "{BEBEBE}"
#define lpink "{CC00AA}"