23.02.2012, 19:01
Estive criando um NPC, Com um Tutorial, aqui na Forum Samp.
Mais deu os seguintes erros.
Linhas 4238:
Linhas 12756:
Mais deu os seguintes erros.
pawn Код:
C:\Documents and Settings\Caio\Desktop\LOL\gamemodes\pp.pwn(4238) : error 017: undefined symbol "PlayerName"
C:\Documents and Settings\Caio\Desktop\LOL\gamemodes\pp.pwn(12756) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
pawn Код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
if(strcmp(PlayerName(playerid), "Maquinista") == 0)
{
PutPlayerInVehicle(playerid,NPCTram,0);
SetPlayerColor(playerid,COLOR_DARKOLIVEGREEN);
SetPlayerSkin(playerid,255);
IsSpawned[playerid] =1;
print("[NPC SPAWN] Dilma Maquinista on");
}
return 1;
}
pawn Код:
new PlayerName[30];