07.09.2017, 04:37
First problem:
Hi, i made 5 textdraws in my server, 2 of them only appears (The XP Bar & Server title name)
Second problem:
When players/admins log in it, i made for them message but it appears both
It is appearing both of them
Third problem:
I got this command of oban but it gives me errors
Command: https://pastebin.com/EnFE8qie
Errors:
Hi, i made 5 textdraws in my server, 2 of them only appears (The XP Bar & Server title name)
Код:
playerData[playerid][cnrLogo] = CreatePlayerTextDraw(playerid, 506.875000, 364.416778, "GamerZ"); PlayerTextDrawLetterSize(playerid, playerData[playerid][cnrLogo], 0.400000, 1.600000); PlayerTextDrawAlignment(playerid, playerData[playerid][cnrLogo], 1); PlayerTextDrawColor(playerid, playerData[playerid][cnrLogo], -2147483393); PlayerTextDrawSetShadow(playerid, playerData[playerid][cnrLogo], 0); PlayerTextDrawSetOutline(playerid, playerData[playerid][cnrLogo], 1); PlayerTextDrawBackgroundColor(playerid, playerData[playerid][cnrLogo], 255); PlayerTextDrawFont(playerid, playerData[playerid][cnrLogo], 2); PlayerTextDrawSetProportional(playerid, playerData[playerid][cnrLogo], 1); PlayerTextDrawSetShadow(playerid, playerData[playerid][cnrLogo], 0); PlayerTextDrawShow(playerid, playerData[playerid][cnrLogo]); playerData[playerid][cnrLogo2] = CreatePlayerTextDraw(playerid, 526.875000, 377.833312, "Cops"); PlayerTextDrawLetterSize(playerid, playerData[playerid][cnrLogo2], 0.400000, 1.600000); PlayerTextDrawAlignment(playerid, playerData[playerid][cnrLogo2], 1); PlayerTextDrawColor(playerid, playerData[playerid][cnrLogo2], 65535); PlayerTextDrawSetShadow(playerid, playerData[playerid][cnrLogo2], 0); PlayerTextDrawSetOutline(playerid, playerData[playerid][cnrLogo2], -1); PlayerTextDrawBackgroundColor(playerid, playerData[playerid][cnrLogo2], 255); PlayerTextDrawFont(playerid, playerData[playerid][cnrLogo2], 0); PlayerTextDrawSetProportional(playerid, playerData[playerid][cnrLogo2], 1); PlayerTextDrawSetShadow(playerid, playerData[playerid][cnrLogo2], 0); playerData[playerid][cnrLogo3] = CreatePlayerTextDraw(playerid, 553.750000, 377.833312, "n"); PlayerTextDrawLetterSize(playerid, playerData[playerid][cnrLogo3], 0.400000, 1.600000); PlayerTextDrawAlignment(playerid, playerData[playerid][cnrLogo3], 1); PlayerTextDrawColor(playerid, playerData[playerid][cnrLogo3], -1); PlayerTextDrawSetShadow(playerid, playerData[playerid][cnrLogo3], 0); PlayerTextDrawSetOutline(playerid, playerData[playerid][cnrLogo3], 1); PlayerTextDrawBackgroundColor(playerid, playerData[playerid][cnrLogo3], 255); PlayerTextDrawFont(playerid, playerData[playerid][cnrLogo3], 0); PlayerTextDrawSetProportional(playerid, playerData[playerid][cnrLogo3], 1); PlayerTextDrawSetShadow(playerid, playerData[playerid][cnrLogo3], 0); playerData[playerid][cnrLogo4] = CreatePlayerTextDraw(playerid, 565.000000, 379.000091, "Robbers"); PlayerTextDrawLetterSize(playerid, playerData[playerid][cnrLogo4], 0.400000, 1.600000); PlayerTextDrawAlignment(playerid, playerData[playerid][cnrLogo4], 1); PlayerTextDrawColor(playerid, playerData[playerid][cnrLogo4], -16776961); PlayerTextDrawSetShadow(playerid, playerData[playerid][cnrLogo4], 0); PlayerTextDrawSetOutline(playerid, playerData[playerid][cnrLogo4], -1); PlayerTextDrawBackgroundColor(playerid, playerData[playerid][cnrLogo4], 255); PlayerTextDrawFont(playerid, playerData[playerid][cnrLogo4], 0); PlayerTextDrawSetProportional(playerid, playerData[playerid][cnrLogo4], 1); PlayerTextDrawSetShadow(playerid, playerData[playerid][cnrLogo4], 0); playerData[playerid][playerExperience] = CreatePlayerTextDraw(playerid, 592.500000, 394.750061, "50000"); PlayerTextDrawLetterSize(playerid, playerData[playerid][playerExperience], 0.400000, 1.600000); PlayerTextDrawAlignment(playerid, playerData[playerid][playerExperience], 3); PlayerTextDrawColor(playerid, playerData[playerid][playerExperience], -2147450625); PlayerTextDrawSetShadow(playerid, playerData[playerid][playerExperience], 0); PlayerTextDrawSetOutline(playerid, playerData[playerid][playerExperience], 1); PlayerTextDrawBackgroundColor(playerid, playerData[playerid][playerExperience], 255); PlayerTextDrawFont(playerid, playerData[playerid][playerExperience], 3); PlayerTextDrawSetProportional(playerid, playerData[playerid][playerExperience], 1); PlayerTextDrawSetShadow(playerid, playerData[playerid][playerExperience], 0); PlayerTextDrawSetSelectable(playerid, playerData[playerid][playerExperience], false); PlayerTextDrawShow(playerid, playerData[playerid][playerExperience]); playerData[playerid][cnrLogo2] = CreatePlayerTextDraw(playerid, 526.875000, 377.833312, "Cops"); PlayerTextDrawLetterSize(playerid, playerData[playerid][cnrLogo2], 0.400000, 1.600000); PlayerTextDrawAlignment(playerid, playerData[playerid][cnrLogo2], 1); PlayerTextDrawColor(playerid, playerData[playerid][cnrLogo2], 65535); PlayerTextDrawSetShadow(playerid, playerData[playerid][cnrLogo2], 0); PlayerTextDrawSetOutline(playerid, playerData[playerid][cnrLogo2], -1); PlayerTextDrawBackgroundColor(playerid, playerData[playerid][cnrLogo2], 255); PlayerTextDrawFont(playerid, playerData[playerid][cnrLogo2], 0); PlayerTextDrawSetProportional(playerid, playerData[playerid][cnrLogo2], 1); PlayerTextDrawSetShadow(playerid, playerData[playerid][cnrLogo2], 0); playerData[playerid][cnrLogo3] = CreatePlayerTextDraw(playerid, 553.750000, 377.833312, "n"); PlayerTextDrawLetterSize(playerid, playerData[playerid][cnrLogo3], 0.400000, 1.600000); PlayerTextDrawAlignment(playerid, playerData[playerid][cnrLogo3], 1); PlayerTextDrawColor(playerid, playerData[playerid][cnrLogo3], -1); PlayerTextDrawSetShadow(playerid, playerData[playerid][cnrLogo3], 0); PlayerTextDrawSetOutline(playerid, playerData[playerid][cnrLogo3], 1); PlayerTextDrawBackgroundColor(playerid, playerData[playerid][cnrLogo3], 255); PlayerTextDrawFont(playerid, playerData[playerid][cnrLogo3], 0); PlayerTextDrawSetProportional(playerid, playerData[playerid][cnrLogo3], 1); PlayerTextDrawSetShadow(playerid, playerData[playerid][cnrLogo3], 0); playerData[playerid][cnrLogo4] = CreatePlayerTextDraw(playerid, 565.000000, 379.000091, "Robbers"); PlayerTextDrawLetterSize(playerid, playerData[playerid][cnrLogo4], 0.400000, 1.600000); PlayerTextDrawAlignment(playerid, playerData[playerid][cnrLogo4], 1); PlayerTextDrawColor(playerid, playerData[playerid][cnrLogo4], -16776961); PlayerTextDrawSetShadow(playerid, playerData[playerid][cnrLogo4], 0); PlayerTextDrawSetOutline(playerid, playerData[playerid][cnrLogo4], -1); PlayerTextDrawBackgroundColor(playerid, playerData[playerid][cnrLogo4], 255); PlayerTextDrawFont(playerid, playerData[playerid][cnrLogo4], 0); PlayerTextDrawSetProportional(playerid, playerData[playerid][cnrLogo4], 1); PlayerTextDrawSetShadow(playerid, playerData[playerid][cnrLogo4], 0); playerData[playerid][playerExperience] = CreatePlayerTextDraw(playerid, 592.500000, 394.750061, "50000"); PlayerTextDrawLetterSize(playerid, playerData[playerid][playerExperience], 0.400000, 1.600000); PlayerTextDrawAlignment(playerid, playerData[playerid][playerExperience], 3); PlayerTextDrawColor(playerid, playerData[playerid][playerExperience], -2147450625); PlayerTextDrawSetShadow(playerid, playerData[playerid][playerExperience], 0); PlayerTextDrawSetOutline(playerid, playerData[playerid][playerExperience], 1); PlayerTextDrawBackgroundColor(playerid, playerData[playerid][playerExperience], 255); PlayerTextDrawFont(playerid, playerData[playerid][playerExperience], 3); PlayerTextDrawSetProportional(playerid, playerData[playerid][playerExperience], 1); PlayerTextDrawSetShadow(playerid, playerData[playerid][playerExperience], 0); PlayerTextDrawSetSelectable(playerid, playerData[playerid][playerExperience], false); PlayerTextDrawShow(playerid, playerData[playerid][playerExperience]);
When players/admins log in it, i made for them message but it appears both
Код:
if(playerData[spareid][playerLevel] >= 1) { SendClientMessage(spareid, COLOR_RED, "{F7FE2E}[Welcome] {FFFFFF}You are login as an GamerZ Staff."); } if(playerData[spareid][playerLevel] >= 0) { SendClientMessage(spareid, COLOR_RED, "{F7FE2E}[Welcome] {FFFFFF}You are login as Registered user.!"); }
Third problem:
I got this command of oban but it gives me errors
Command: https://pastebin.com/EnFE8qie
Errors:
Код:
E:\Shortcuts\RX-2\gamemodes\CGCNR.pwn(1843) : error 001: expected token: "-string end-", but found "-identifier-" E:\Shortcuts\GZ-2\gamemodes\GZCNR.pwn(1843) : warning 215: expression has no effect E:\Shortcuts\GZ-2\gamemodes\GZCNR.pwn(1843) : error 001: expected token: ";", but found "-string-" E:\Shortcuts\GZ-2\gamemodes\GZCNR.pwn(1843) : warning 215: expression has no effect E:\Shortcuts\GZ-2\gamemodes\GZCNR.pwn(1843) : error 001: expected token: ";", but found ")" E:\Shortcuts\GZ-2\gamemodes\GZCNR.pwn(1843) : fatal error 107: too many error messages on one line