C:\Documents and Settings\Admin\Desktop\Testing GM\gamemodes\testing.pwn(5592) : error 035: argument type mismatch (argument 1) C:\Documents and Settings\Admin\Desktop\Testing GM\gamemodes\testing.pwn(5592) : error 035: argument type mismatch (argument 1) C:\Documents and Settings\Admin\Desktop\Testing GM\gamemodes\testing.pwn(5596) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\Admin\Desktop\Testing GM\gamemodes\testing.pwn(33423) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. **Ignore the warning.
public LicnaKarta(playerid,targetid)
{
if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new name[MAX_PLAYER_NAME];
new otext[20];
new atext[20];
new age = PlayerInfo[targetid][pAge];
GetPlayerName(targetid, name, sizeof(name));
if(PlayerInfo[targetid][pOrigin] == 1) { otext = "Hrvatska"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Bosna"; }
else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "CrnaGora"; }
else if(PlayerInfo[targetid][pOrigin] == 4) { otext = "Srbija"; }
if(PlayerInfo[targetid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[targetid][pSex] == 2) { atext = "Zensko"; }
format(name, sizeof(name), "%s", name);
format(otext, sizeof(otext), "%s", otext);
format(atext, sizeof(atext), "%s", atext);
format(age, sizeof(age), "%d", age);
TextDrawSetString(Licnakarta4, name);
TextDrawSetString(Licnakarta7, otext);
TextDrawSetString(Licnakarta12, atext);
TextDrawSetString(Licnakarta13, age);
TextDrawShowForPlayer(playerid, Licnakarta4);
TextDrawShowForPlayer(playerid, Licnakarta7);
TextDrawShowForPlayer(playerid, Licnakarta12);
TextDrawShowForPlayer(playerid, Licnakarta13);
//----------------Prodolzuva----------------//
TextDrawShowForPlayer(playerid, Licnakarta0);
TextDrawShowForPlayer(playerid, Licnakarta1);
TextDrawShowForPlayer(playerid, Licnakarta2);
TextDrawShowForPlayer(playerid, Licnakarta3);
TextDrawShowForPlayer(playerid, Licnakarta5);
TextDrawShowForPlayer(playerid, Licnakarta6);
TextDrawShowForPlayer(playerid, Licnakarta8);
TextDrawShowForPlayer(playerid, Licnakarta9);
TextDrawShowForPlayer(playerid, Licnakarta10);
TextDrawShowForPlayer(playerid, Licnakarta11);
TextDrawShowForPlayer(playerid, Licnakarta14);
TextDrawShowForPlayer(playerid, Licnakarta15);
TextDrawShowForPlayer(playerid, Licnakarta16);
TextDrawShowForPlayer(playerid, Licnakarta17);
TextDrawShowForPlayer(playerid, Licnakarta18);
TextDrawShowForPlayer(playerid, Licnakarta19);
TextDrawShowForPlayer(playerid, Licnakarta20);
}
}
Error 5592:
format(age, sizeof(age), "%d", age);
Error 5596:
TextDrawSetString(Licnakarta13, age);
public LicnaKarta(playerid,targetid)
{
if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new name[MAX_PLAYER_NAME];
new otext[20];
new atext[20];
new age = PlayerInfo[targetid][pAge];
GetPlayerName(targetid, name, sizeof(name));
if(PlayerInfo[targetid][pOrigin] == 1) { otext = "Hrvatska"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Bosna"; }
else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "CrnaGora"; }
else if(PlayerInfo[targetid][pOrigin] == 4) { otext = "Srbija"; }
if(PlayerInfo[targetid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[targetid][pSex] == 2) { atext = "Zensko"; }
TextDrawSetString(Licnakarta4, name);
TextDrawSetString(Licnakarta7, otext);
TextDrawSetString(Licnakarta12, atext);
TextDrawSetString(Licnakarta13, age);
TextDrawShowForPlayer(playerid, Licnakarta4);
TextDrawShowForPlayer(playerid, Licnakarta7);
TextDrawShowForPlayer(playerid, Licnakarta12);
TextDrawShowForPlayer(playerid, Licnakarta13);
//----------------Prodolzuva----------------//
TextDrawShowForPlayer(playerid, Licnakarta0);
TextDrawShowForPlayer(playerid, Licnakarta1);
TextDrawShowForPlayer(playerid, Licnakarta2);
TextDrawShowForPlayer(playerid, Licnakarta3);
TextDrawShowForPlayer(playerid, Licnakarta5);
TextDrawShowForPlayer(playerid, Licnakarta6);
TextDrawShowForPlayer(playerid, Licnakarta8);
TextDrawShowForPlayer(playerid, Licnakarta9);
TextDrawShowForPlayer(playerid, Licnakarta10);
TextDrawShowForPlayer(playerid, Licnakarta11);
TextDrawShowForPlayer(playerid, Licnakarta14);
TextDrawShowForPlayer(playerid, Licnakarta15);
TextDrawShowForPlayer(playerid, Licnakarta16);
TextDrawShowForPlayer(playerid, Licnakarta17);
TextDrawShowForPlayer(playerid, Licnakarta18);
TextDrawShowForPlayer(playerid, Licnakarta19);
TextDrawShowForPlayer(playerid, Licnakarta20);
}
}
C:\Documents and Settings\Admin\Desktop\DreamWorld RPG Macedonia 0.3d\gamemodes\DREAMWORLD.pwn(5592) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\Admin\Desktop\DreamWorld RPG Macedonia 0.3d\gamemodes\DREAMWORLD.pwn(5581) : warning 204: symbol is assigned a value that is never used: "age" C:\Documents and Settings\Admin\Desktop\DreamWorld RPG Macedonia 0.3d\gamemodes\DREAMWORLD.pwn(33419) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. Line 5592: TextDrawSetString(Licnakarta13, age); Line 5581: new age = PlayerInfo[targetid][pAge];
new age;
age = PlayerInfo[targetid][pAge];
TextDrawSetString(Licnakarta13, age);
new szAge[12];
format(szAge, sizeof (szAge), "%d", PlayerInfo[targetid][pAge]);
TextDrawSetString(Licnakarta13, szAge);
pawn Код:
|