new Conv_P_1 = CPS_AddCheckpoint(-78.452186,-1169.856323,2.137668, 1.0, 40);//Conveniencia Posto 1
SetPlayerVirtualWorld(playerid, 10);
SetPlayerInterior(playerid, 17);
if(chekpointid == Conv_P_1)
{
SetPlayerVirtualWorld(playerid, 10);
SetPlayerInterior(playerid, 17);
}
dentro da OnPlayerEnterCheckpoint vocк poe
pawn Code:
|
C:\Users\Usuario\Desktop\Server SAMP 0.3z\gamemodes\GM.pwn(119) : warning 204: symbol is assigned a value that is never used: "Conv_P_1"
C:\Users\Usuario\Desktop\Server SAMP 0.3z\gamemodes\GM.pwn(384) : error 017: undefined symbol "chekpointid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
#include a_samp
#include DOF2
#include progressbar
#include sscanf2
#include cpstream
//topo do gm
new ChekPoint[MAX_PLAYERS];
new Conv_P_1;
//onplayerspawn
Conv_P_1 = SetPlayerCheckpoint(playerid, -78.452186,-1169.856323,2.137668, 1.0);//Conveniencia Posto 1
//onplayerconnect
CheckPoint[playerid] = 0;
//onplayerentercheckpoint
if(CheckPoint[playerid] == Conv_P_1)
{
CheckPoint[playerid] = 0;
SendClientMessage(playerid, -1, "Bem vindo a conveniencia do posto 1");
SetPlayerVirtualWorld(playerid, 10);
SetPlayerInterior(playerid, 17);
}
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
GivePlayerMoney(playerid, 1000);
DisablePlayerCheckpoint(playerid);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
new checknome = CPS_GetPlayerCheckpoint(playerid);
if(checknome == Conv_P_1)
{
SetPlayerVirtualWorld(playerid, 10);
SetPlayerInterior(playerid, 17);
return 1;
}
}