new Text3D:text[MAX_PLAYERS];
text(playerid) = Create3DTextLabel(\"teszt szöveg\", COLOR_RED, 0.0, 0.0, 0.0, 25.0, 0, 0);
Attach3DTextLabelToPlayer(text(playerid),playerid,0,0,3); <-- ezzel rakod a feje fölé rögtön megírom a parancsaidra is
#include <a_samp>#define COLOR_RED 0xAA3333AAnew Text3D:afk[MAX_PLAYERS];public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\"Prezi script 4 BackUP by RedNET (founder Red-Eye)\");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;}public OnPlayerConnect(playerid){ afk[playerid] = Create3DTextLabel(\"Afk-zok!!\", COLOR_RED, 0.0, 0.0, 0.0, 25.0, 0, 0);return 1;}public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/afk\", cmdtext, true, 10) == 0){Attach3DTextLabelToPlayer(afk[playerid],playerid,0,0,3);return 1;}if (strcmp(\"/afk-ki\", cmdtext, true, 10) == 0){Delete3DTextLabel(afk[playerid]);return 1;}return 0;}public OnPlayerDisconnect(playerid, reason){Delete3DTextLabel(afk[playerid]); return 1;}
D:\\Back Black Street\\pawno\\afk.pwn(32) : warning 213: tag mismatch
Attach3DTextLabelToPlayer(afk[playerid],playerid,0,0,3);
public OnPlayerConnect(playerid){ afk[playerid] = Create3DTextLabel(\"Afk-zok!!\", COLOR_RED, 0.0, 0.0, 0.0, 25.0, 0, 0); return 1;}
D:\\Back Black Street\\filterscripts\\afk.pwn(36) : warning 213: tag mismatch
D:\\Back Black Street\\filterscripts\\afk.pwn(27) : warning 219: local variable \"afk\" shadows a variable at a preceding level