26.01.2011, 13:53
(
Последний раз редактировалось BuLLeT[LTU]; 29.01.2011 в 07:35.
)
Hi. I Have problem with this code:
Errors:
C:\Users\Mindaugas\Desktop\EU-PG\gamemodes\EU-PG.pwn(16557) : warning 213: tag mismatch
C:\Users\Mindaugas\Desktop\EU-PG\gamemodes\EU-PG.pwn(16557) : error 035: argument type mismatch (argument 2)
C:\Users\Mindaugas\Desktop\EU-PG\gamemodes\EU-PG.pwn(16561) : warning 213: tag mismatch
C:\Users\Mindaugas\Desktop\EU-PG\gamemodes\EU-PG.pwn(16561) : error 035: argument type mismatch (argument 2)
-----------------------------------------------
Solved:
pawn Код:
stock TextDrawSetStringLang(playerid,txtdraw,const string1[], const string2[])
{
switch(PlayerI[playerid][Lang])
{
case 0: // ENG
{
TextDrawSetString(txtdraw,string1); //16557 line
}
case 1: // LTU
{
TextDrawSetString(txtdraw,string2); //16561 line
}
}
}
C:\Users\Mindaugas\Desktop\EU-PG\gamemodes\EU-PG.pwn(16557) : warning 213: tag mismatch
C:\Users\Mindaugas\Desktop\EU-PG\gamemodes\EU-PG.pwn(16557) : error 035: argument type mismatch (argument 2)
C:\Users\Mindaugas\Desktop\EU-PG\gamemodes\EU-PG.pwn(16561) : warning 213: tag mismatch
C:\Users\Mindaugas\Desktop\EU-PG\gamemodes\EU-PG.pwn(16561) : error 035: argument type mismatch (argument 2)
-----------------------------------------------
Solved:
pawn Код:
forward TextDrawSetStringLang(playerid, Text:txtdraw,string1[], string2[]);
public TextDrawSetStringLang(playerid, Text:txtdraw,string1[], string2[])
{
switch(PlayerI[playerid][Lang])
{
case 0: // ENG
{
TextDrawSetString(txtdraw,string1);
}
case 1: // LTU
{
TextDrawSetString(txtdraw,string2);
}
}
}