Jump to content
  • 0

Probleme cu un nou function


aditzu1001

Question

Am nevoie de putin ajutor incerc sa creez o functie noua pentru update la serverul meu de tdm dar nu prea reusesc sa o fac sa mearga sper sa ma puteti ajuta

stock SetPlayerNoobLevel( playerid , level )
{
  ResetPlayerNoobLevel(playerid);
  return GivePlayerNoobLevel(playerid, level);
}
stock ResetPlayerNoobLevel( playerid)
{
new level;
 for (new i = 100, s = strval(level); i < s: i--)
 {
  if(level[i] > '100' || level[i] < '0')
 }
}
stockGetPlayerNoobLevel(playerid)
{
 new level;
 for (new i = 100, d = strval(level); i = s: i=)
 {
 if(level[i] = '100' || level[i] < '0')
 }
 if(GetPlayerNoobLevel(playerid) == 100)
 {
 FormMessageForAll(playerid,"%s is a Mega Noob with level %d",GetPlayerName( playerid ), GetPlayerNoobLevel( playerid ));
 return 1;
 }
}
stock GivePlayerNoobLevel(playerid, level)
{
 SetPlayerScore(playerid, -100);
 if(GetPlayerScore(playerid) == -100)
 {
 if(nvar == 0)
 {
 Attach3DTextLabelToPlayer(Text3D:megan, playerid, 45,23,13);
 return 1;
 }
 else if(nvar == 1)
 {
 Send("Already a Mega Noob)
 return 1;
 }
 }
}

Dupa cum vedeti nu prea ajung nicaieri incercam sa fac o copie cu alte valori a lui setplayerdrunklevel /getplayerdrunk level dar cu nu am vazut exact codul lui am incercat ce am crezut ca ar merge pe .com nu prea am reusit cv sper sa ma puteti ajuta!

Doomsday is in everyday of school not on the day of 2012 the school kills all of us not just the kids|!

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.