SetPlayerColor(playerid, PlayerColors[playerid]);new string[128], n[24];GetPlayerName(playerid, n, 24);format(string, 128, \"{5eff00}***{%06x}%s {5eff00}csatlakozott a szerverhez!***\", n, (GetPlayerColor(playerid) >>> );SendClientMessageToAll(-1, string);
CMD:ab(playerid){new Text3D:label = Create3DTextLabel(\"{c4a300}GODMODE {00ff48}ON!\", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 1); Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);return 1;}CMD:cd(playerid){ new Text3D:label; Delete3DTextLabel(label);return 1;}
new PlayerText:rosszpText[MAX_PLAYERS];
public OnPlayerCommandPerformed(playerid, cmdtext[], success){if(!success){ rosszpText[playerid] = CreatePlayerTextDraw(playerid, 240.0, 580.0, \"Hibás parancs!\"); PlayerTextDrawShow(playerid, rosszpText[playerid]); } return 1;}
SetPlayerColor(playerid, PlayerColors[playerid]);new string[128], n[MAX_PLAYER_NAME];GetPlayerName(playerid, n, sizeof(n));format(string, 128, \"{5eff00}***{%06x}%s {5eff00}csatlakozott a szerverhez!***\", n, (GetPlayerColor(playerid) >>> );SendClientMessageToAll(-1, string);
CMD:cd(playerid){ new Text3D:label; Delete3DTextLabel(playerid, label);return 1;}
format(string, 128, \"{5eff00}***{%06x}%s {5eff00}csatlakozott a szerverhez!***\", GetPlayerColor( playerid ) >>> 8, n );
1. hiba: new PlayerText:rosszpText[MAX_PLAYERS]; public OnPlayerCommandPerformed(playerid, cmdtext[], success){if(!success){ rosszpText[playerid] = CreatePlayerTextDraw(playerid, 240.0, 580.0, \"Hibás parancs!\"); PlayerTextDrawShow(playerid, rosszpText[playerid]); } return 1;} 2. hiba: SetPlayerColor(playerid, PlayerColors[playerid]);new string[128], n[MAX_PLAYER_NAME];GetPlayerName(playerid, n, sizeof(n));format(string, 128, \"{5eff00}***{%06x}%s {5eff00}csatlakozott a szerverhez!***\", n, (GetPlayerColor(playerid) >>> );SendClientMessageToAll(-1, string); 3. hiba: CMD:cd(playerid){ new Text3D:label; Delete3DTextLabel(playerid, label);return 1;} http://wiki.sa-mp.com/wiki/DeletePlayer3DTextLabel
D:\\Users\\Hanga\\Desktop\\samp\\pawno\\include\\fixchars.inc(139) : error 035: argument type mismatch (argument 1)D:\\Users\\Hanga\\Desktop\\samp\\pawno\\include\\fixchars.inc(140) : error 035: argument type mismatch (argument 4)D:\\Users\\Hanga\\Desktop\\samp\\pawno\\include\\fixchars.inc(140) : warning 213: tag mismatchD:\\Users\\Hanga\\Desktop\\samp\\gamemodes\\everyday.pwn(1606) : error 028: invalid subscript (not an array or too many subscripts): \"command\"D:\\Users\\Hanga\\Desktop\\samp\\gamemodes\\everyday.pwn(1606) : warning 215: expression has no effectD:\\Users\\Hanga\\Desktop\\samp\\gamemodes\\everyday.pwn(1606) : error 001: expected token: \";\", but found \"]\"D:\\Users\\Hanga\\Desktop\\samp\\gamemodes\\everyday.pwn(1606) : error 029: invalid expression, assumed zeroD:\\Users\\Hanga\\Desktop\\samp\\gamemodes\\everyday.pwn(1606) : fatal error 107: too many error messages on one line