..::[ PlayerInfo[playerid][VozacBusa] = +0; HELP ]::..
#1

I need help white function....How i can make somethink like this...
Code:
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
but on this function

Code:
PlayerInfo[playerid][VozacBusa] = +1;
Reply
#2

I didn't understand you very well but did you mean this?
Code:
PlayerInfo[playerid][VozacBusa]++;
??
Reply
#3

Quote:
Originally Posted by » RyDeR «
I didn't understand you very well but did you mean this?
Code:
PlayerInfo[playerid][VozacBusa]++;
??
Tny RIDER now i have one more question how i can see that stats something like this

Code:
if (strcmp("/mypos", cmdtext, true, 5) == 0)
	{
    new string[128]
    GetPlayerPos(playerid,string);
    SendClientMessage(playerid, COLOR_RED,string);
		return 1;
	}
but on that function PlayerInfo[playerid][VozacBusa]
Reply
#4


Code:
if (strcmp("/mypos", cmdtext, true, 5) == 0)
	{
    new string[128]
    GetPlayerPos(playerid,string);
    SendClientMessage(playerid, COLOR_RED,string);
		return 1;
	}
but on that function PlayerInfo[playerid][VozacBusa]
[/quote]

try but i didnt get it what you want..

Code:
if (strcmp("/komanda", cmdtext, true, 5) == 0)
	{
    new string[64]
    format(string,sizeof(string),"status: %d",PlayerInfo[playerid][VozacBusa])
    SendClientMessage(playerid, COLOR_RED,string);
		return 1;
	}
Reply
#5

Quote:
Originally Posted by LudiGrad
Quote:
Originally Posted by » RyDeR «
I didn't understand you very well but did you mean this?
Code:
PlayerInfo[playerid][VozacBusa]++;
??
Tny RIDER now i have one more question how i can see that stats something like this

Code:
if (strcmp("/mypos", cmdtext, true, 5) == 0)
	{
    new string[128]
    GetPlayerPos(playerid,string);
    SendClientMessage(playerid, COLOR_RED,string);
		return 1;
	}
but on that function PlayerInfo[playerid][VozacBusa]
Using format:
~~~~~~~~
Code:
new
    string[128]
;
format(string, sizeof(string), "Vozac Busa: %d", PlayerInfo[playerid][VozacBusa]);
SendClientMessage(playerid, COLOR_RED, string);
Have fun

Edit: [ST]Ivex was faster
Reply
#6

tny alot man!
Reply
#7

Need help again how to make return whit format like this

Code:
new string[128];
    if(PlayerInfo[playerid][BusRute] <5) return format(string,sizeof string,"Moras odvoziti MINIMALNO 5 ruti, a ti si odvozio | Rute: %d",PlayerInfo[playerid][BusRute]);
    SendClientMessageToAll(COLOR_RED,string);
Reply
#8

What?
Reply
#9

if(PlayerInfo[playerid][BusRute] <5) return format(string,sizeof string,"Moras odvoziti MINIMALNO 5 ruti, a ti si odvozio | Rute: %d",PlayerInfo[playerid][BusRute]);
Reply
#10

Quote:
Originally Posted by LudiGrad
if(PlayerInfo[playerid][BusRute] <5) return format(string,sizeof string,"Moras odvoziti MINIMALNO 5 ruti, a ti si odvozio | Rute: %d",PlayerInfo[playerid][BusRute]);
OK now i really dont get it...what do you realy want??

is this maybe?

Code:
if(PlayerInfo[playerid][BusRute] <5) {format(string,sizeof (string),"Moras odvoziti MINIMALNO 5 ruti, a ti si odvozio | Rute: %d",PlayerInfo[playerid][BusRute]); SendClientMessageToAll(COLOR_RED,string);}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)