Sziasztok! Azzal a gonddal fordulok hozzátok, hogy egy névmutató textdrawot akarok készíteni de errort ír és sajnos nem mutom miért
UI:Kezdő scripter vagyok szóval tanulom.
textdraw
new Text:NevMutat2[MAX_PLAYERS];
new Text:NevMutat[MAX_PLAYERS];
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
NevMutat[playerid] = TextDrawCreate(622.000000, 122.000000, \" \");
TextDrawBackgroundColor(NevMutat[playerid], 255);
TextDrawFont(NevMutat[playerid], 1);
TextDrawLetterSize(NevMutat[playerid], 0.500000, 1.000000);
TextDrawColor(NevMutat[playerid], -1);
TextDrawSetOutline(NevMutat[playerid], 0);
TextDrawSetProportional(NevMutat[playerid], 1);
TextDrawSetShadow(NevMutat[playerid], 1);
TextDrawUseBox(NevMutat[playerid], 1);
TextDrawBoxColor(NevMutat[playerid], 0x00000065);
TextDrawTextSize(NevMutat[playerid], 490.000000, 37.000000);
NevMutat2[playerid] = TextDrawCreate(498.000000, 100.000000, \"Betöltés...\");
TextDrawBackgroundColor(NevMutat2[playerid], 0x1675E9FF);
TextDrawFont(NevMutat2[playerid], 3);
TextDrawLetterSize(NevMutat2[playerid], 0.310000, 1.100000);
TextDrawColor(NevMutat2[playerid], 0x000000FF);
TextDrawSetOutline(NevMutat2[playerid], 1);
TextDrawSetProportional(NevMutat2[playerid], 1);
return 1;
}
és még csináltam hozzá ilyet:
forward Nevasd(playerid);
public Nevasd(playerid)
{
new asd[128], Nev[MAX_PLAYER_NAME];
GetPlayerName(playerid,Nev, sizeof(Nev));
format(asd, sizeof(asd), \"%s\", Nev(playerid));
TextDrawSetString(NevMutat2[playerid],asd);
return 1;
}
error(ok)
C:\\Users\\Property\\Desktop\\LightRPG\\gamemodes\\nevmutat.pwn(85) : error 012: invalid function call, not a valid address
C:\\Users\\Property\\Desktop\\LightRPG\\gamemodes\\nevmutat.pwn(85) : warning 215: expression has no effect
C:\\Users\\Property\\Desktop\\LightRPG\\gamemodes\\nevmutat.pwn(85) : error 001: expected token: \";\", but found \")\"
C:\\Users\\Property\\Desktop\\LightRPG\\gamemodes\\nevmutat.pwn(85) : error 029: invalid expression, assumed zero
C:\\Users\\Property\\Desktop\\LightRPG\\gamemodes\\nevmutat.pwn(85) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.