SA-MP Forums Archive
3 errors - 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)
+--- Thread: 3 errors (/showthread.php?tid=364372)



3 errors - tutibubu - 30.07.2012

Код:
C:\Users\Cezar\Desktop\Dark-Gamingg\gamemodes\DG.pwn(49266) : error 035: argument type mismatch (argument 2)
C:\Users\Cezar\Desktop\Dark-Gamingg\gamemodes\DG.pwn(67843) : error 035: argument type mismatch (argument 2)
C:\Users\Cezar\Desktop\Dark-Gamingg\gamemodes\DG.pwn(67844) : error 035: argument type mismatch (argument 2)
And lines 49263-49268
Код:
	if(PlayerInfo[i][pLeader] == 5)
	                    {
						   format(string, 256, "Corleone Famiglia Leader: %s", sendername);
						   SCM(playerid, COLOR_CORLEONE , string);

						}
67843-67844
Код:
    if(PlayerInfo[playerid][pMember] == 5 ) { SetPlayerColor(playerid, COLOR_CORLEONE); } //Corleone
    if(PlayerInfo[playerid][pLeader] == 5 ) { SetPlayerColor(playerid, COLOR_CORLEONE); } //Corleone



Re: 3 errors - Mark™ - 30.07.2012

Quote:
Originally Posted by tutibubu
Посмотреть сообщение
Код:
C:\Users\Cezar\Desktop\Dark-Gamingg\gamemodes\DG.pwn(49266) : error 035: argument type mismatch (argument 2)
C:\Users\Cezar\Desktop\Dark-Gamingg\gamemodes\DG.pwn(67843) : error 035: argument type mismatch (argument 2)
C:\Users\Cezar\Desktop\Dark-Gamingg\gamemodes\DG.pwn(67844) : error 035: argument type mismatch (argument 2)
And lines 49263-49268
Код:
	if(PlayerInfo[i][pLeader] == 5)
	                    {
						   format(string, 256, "Corleone Famiglia Leader: %s", sendername);
						   SCM(playerid, COLOR_CORLEONE , string);

						}
67843-67844
Код:
    if(PlayerInfo[playerid][pMember] == 5 ) { SetPlayerColor(playerid, COLOR_CORLEONE); } //Corleone
    if(PlayerInfo[playerid][pLeader] == 5 ) { SetPlayerColor(playerid, COLOR_CORLEONE); } //Corleone
pawn Код:
new string[64];
if(PlayerInfo[i][pLeader] == 5)
{
    format(string, sizeof(string), "Corleone Famiglia Leader: %s", sendername);
    SCM(playerid, COLOR_CORLEONE , string);
}
About the last two errors, use the hex value of that particular color, instead of using its name.


Re: 3 errors - tutibubu - 30.07.2012

Solved The color id was wrong