[Ajuda] Spawn
#1

Tipo quando eu entro no servidor eu nгo apareco no interior 0, aparece tudo bugado, sу no meu GM alguйm me ajuda.
Reply
#2

SetPlayerInterior
SetPlayerVirtualWorld
OnPlayerSpawn
Reply
#3

Coloca na Public OnPlayerSpawn
PHP код:
SetPlayerInterior(playerid,0); 
Reply
#4

Da esse erro aqui
pawn Код:
C:\Users\Casa\Desktop\server\gamemodes\Eduardo.pwn(210) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Reply
#5

Da isso quando
pawn Код:
C:\Users\Casa\Desktop\server\gamemodes\Eduardo.pwn(200) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
Quando eu coloco isso
pawn Код:
public OnPlayerSpawn(playerid)
{
    new PlayerName[MAX_PLAYER_NAME],
    string[128];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    format(string, sizeof(string), "%s has spawned.", PlayerName);
    SendClientMessageToAll(0xFFFFFFFF, string);
    return 1;
}
Reply
#6

pawn Код:
public OnPlayerSpawn(playerid)
{
new NameP[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, NameP, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s has spawned.", NameP);
SendClientMessageToAll(-1, string);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)