SA-MP Forums Archive
whats wrong in this??!? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: whats wrong in this??!? (/showthread.php?tid=111085)



whats wrong in this??!? - patchkinson - 29.11.2009

This is my OnPlayerSpawn
WHat matters here is the part of the SetPlayerChatBubble
Cause the player doesnt get any chat bubble, but why??
if patch logs in he does not get chat bubble
nor does mafia
nor does anyone
pawn Код:
public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "bikels", true)) //Checking if the NPC's name is MyFirstNPC
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicle, 0); //Putting the NPC into the vehicle we created for it.
      return 1;
    }
    if(!strcmp(npcname, "duck", true))
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehiclee, 0);
      return 1;
    }
    if(!strcmp(npcname, "androls", true))
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicleee, 0);
      return 1;
    }
    if(!strcmp(npcname, "damness", true))
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicleeeee, 0);
      return 1;
    }
    if(!strcmp(npcname, "grove", true))
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicleeeeee, 0);
      return 1;
    }
    if(!strcmp(npcname, "dumbot", true))
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicleeeeeeee, 0);
      return 1;
    }
    if(!strcmp(npcname, "warhydra", true))
    {
      PutPlayerInVehicle(playerid, MyFirstNPCVehicleeeeeeeee, 0);
      return 1;
    }
    GetPlayerName(playerid, Name, sizeof(Name));
        if(strcmp(Name, "patch", true) == 0)
        {
        SetPlayerChatBubble(playerid, "AssWiperZ Owner ;)", red, 100.0, 1000000000000000000000);
        }
        else if(strcmp(Name, "[Cro]Mafia", true) == 0)
        {
        SetPlayerChatBubble(playerid, "AssWiperZ Head Admin ;)", red, 100.0, 1000000000000000000000);
        }
        else if(strcmp(Name, "Xcamx", true) == 0)
        {
        SetPlayerChatBubble(playerid, "AssWiperZ Head Admin ;)", red, 100.0, 1000000000000000000000);
        }
        else
        {
        SetPlayerChatBubble(playerid, "AssWiperZ Player ;)", red, 100.0, 1000000000000000000000);
        return 1;
        }

    return 1;
  }

    if(IsPlayerNPC(playerid)) return 1;
    GivePlayerWeapon(playerid,25,3000);
    GivePlayerWeapon(playerid,34,3000);
    GivePlayerWeapon(playerid,26,3000);
    SetPlayerTime(playerid,0,0);
  SetWorldTime(0);
    return 1;
}
thanks!


Re: whats wrong in this??!? - [NYRP]Mike. - 29.11.2009

Alright i think you over exadurated the 000000000000000's on the last part try adding it back too 10000


Re: whats wrong in this??!? - patchkinson - 29.11.2009

but i want it to be permanent, no way to keep it permanent?


Re: whats wrong in this??!? - Joe Staff - 29.11.2009

You could use '0x7FFFFFFF' which is the equivalent of 2,147,483,647 milliseconds or 24 days. I'd be more worried about the world coming to an end than your chat bubble disappearing.


Re: whats wrong in this??!? - UsaBoy91 - 29.11.2009

24 days ? i think you wrong


Re: whats wrong in this??!? - patchkinson - 29.11.2009

hm
i just want a chat bubble to stay like at least, erf 3 hours
if anyone helps me its a thanks


Re: whats wrong in this??!? - Streetplaya - 29.11.2009

Quote:
Originally Posted by Joe Staff
You could use '0x7FFFFFFF' which is the equivalent of 2,147,483,647 milliseconds or 24 days. I'd be more worried about the world coming to an end than your chat bubble disappearing.



Re: whats wrong in this??!? - Retardedwolf - 29.11.2009

180000 for 3 hours I assume.

0x7FFFFFFF is 24.8 days in fact.


Re: whats wrong in this??!? - patchkinson - 29.11.2009


will try tomorrow
too god damn lazy tday xD