Lending vehicles.
#8

Suppose you have two arrays and you want to copy the contents of one array into another:

Код:
new pname[30];
new qname[30];

GetPlayerName(playerid,pname,sizeof(pname));

for(new i=0;i <= strlen(pname);i++)
{
  pname[i]=qname[i];
}
Not tested but should work.


Another way is send the playerid that rented the car to a function where you get the name of the player in a different array.
Reply


Messages In This Thread
Lending vehicles. - by Jonni8 - 13.06.2010, 17:55
Re: Lending vehicles. - by DJDhan - 13.06.2010, 18:18
Re: Lending vehicles. - by Jonni8 - 13.06.2010, 18:43
Re: Lending vehicles. - by DJDhan - 13.06.2010, 18:47
Re: Lending vehicles. - by Jonni8 - 13.06.2010, 18:59
Re: Lending vehicles. - by DJDhan - 13.06.2010, 19:23
Re: Lending vehicles. - by Jonni8 - 13.06.2010, 20:03
Re: Lending vehicles. - by DJDhan - 13.06.2010, 20:07

Forum Jump:


Users browsing this thread: 1 Guest(s)