3 problems +rep
#1

First problem:
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]);
Second problem:
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.!");
	    	}
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:
Код:
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
Reply
#2

Can you show me exact same line when errors happen and 5-/+ becausd maybe its not in that same line
Reply
#3

Btw in that pastebin linm youve sent -1 must not contain spacebars around it. It sticks together with comma.
And can you show me line 1843 and 5-/+ around it
Reply
#4

Quote:
Originally Posted by n00blek
Посмотреть сообщение
Btw in that pastebin linm youve sent -1 must not contain spacebars around it. It sticks together with comma.
And can you show me line 1843 and 5-/+ around it
First if you will repair/fix something send the code here or in PM, second tell me which problem of the three problems you're talking about
Reply
#5

Im o phone i cant write code
Reply
#6

Quote:
Originally Posted by n00blek
Посмотреть сообщение
Im o phone i cant write code
Ok which code you are talking about? oban?
Reply
#7

yes.
Reply
#8

What do you need in it? i wrote in pastebin everything related to the command
Reply
#9

bump
Reply
#10

Stop bumping every 30 minutes, it isn't going to get you help any faster.

You don't describe your first problem in details nor do you show us how you display the textdraws.

Your second problem is literally 3rd grade math. > = means GREATER THAN or EQUAL.

Third problem, show lines 1840-1844.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)