Jump to content
  • 0

Erori la comnda /regplate


UltraJohn

Question

5 answers to this question

Recommended Posts

if(strcmp(cmd, "/regplate", true) == 0)
	{
    	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /regplate [playerid/PartOfName] [xx-xxx-xxx]");
		}
		giveplayerid = ReturnUser(tmp);
		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
			if(IsPlayerConnected(giveplayerid))
			{
			    if(giveplayerid != INVALID_PLAYER_ID)
			    {
				    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
					GetPlayerName(playerid, sendername, sizeof(sendername));
					new length = strlen(cmdtext);
					while ((idx < length) && (cmdtext[idx] <= ' '))
					{
						idx++;
					}
					new offset = idx;
					new result[64];
					while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
					{
						result[idx - offset] = cmdtext[idx];
						idx++;
					}
					result[idx - offset] = EOS;
					if(!strlen(result))
					{
						return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /regplate [playerid/PartOfName] [xx-xxx-xxx]");
					}
					if(IsPlayerInAnyVehicle(playerid))
					{
					    new vehicleid = GetPlayerVehicleID(playerid);
					    new Text3D:VText;
					    format(string,sizeof(string),"%s",(result));
						VText = Create3DTextLabel(string,0x008080FF,0.0,0.0,0.0,20,0,1);
						Attach3DTextLabelToVehicle(Text3D:VText, vehicleid, 0.0, 0.0, 0.0);
					}
					return 1;
				}
			}
			else
			{
				format(string, sizeof(string), "   %d is not an active player.", giveplayerid);
				SendClientMessage(playerid, COLOR_GRAD1, string);
			}
		}
		return 1;
	}

Proiecte:

Hospital Interior-0%(neinceput)

Limo Interior-0%(inceput)

Bank Interior-0%(neinceput)

Bus Interior-0%(inceput)

Plane Interior-0%(neinceput)

Train Interior-0%(neinceput)

Boat Interior-95%(terminat,mici retusuri)

Mini-Scripturi care au fost publicate:

GPS System: http://forum.sa-mp.ro/filter-scripts-and-gamemodes/%28fs%29-gps-system/

Link to comment
Share on other sites

Salut!

Multumesc ca ai incercat dar imi apare aceiasi problema.

Nu poti rescrie comanda in asa fel incat sa o faci spre exemplu cand un jucator este intrun punct anume si foloseste comanda respectiva sa potat schimba numele la masina personala, adica la cea cumparat de el.

Poti face?

Multumesc anticipat!

Link to comment
Share on other sites

salut,daca ai fi citit regulamentul ai fi stiu ca nu ai voie sa ceri scripturi.in legatura cu,comanda incearc-o s-o pui sub o comanda gen /tazer sau ce mai ai tu,s-ar putea sa-ti mearga

Proiecte:

Hospital Interior-0%(neinceput)

Limo Interior-0%(inceput)

Bank Interior-0%(neinceput)

Bus Interior-0%(inceput)

Plane Interior-0%(neinceput)

Train Interior-0%(neinceput)

Boat Interior-95%(terminat,mici retusuri)

Mini-Scripturi care au fost publicate:

GPS System: http://forum.sa-mp.ro/filter-scripts-and-gamemodes/%28fs%29-gps-system/

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.