Posts: 4,930
Threads: 467
Joined: Dec 2010
18.03.2013, 23:20
(
Последний раз редактировалось OTACON; 19.03.2013 в 00:44.
)
pawn Код:
#include <a_samp>
#include <streamer>
new micheckpoint;
public OnGameModeInit() {
micheckpoint = CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
return 1;
}
Posts: 226
Threads: 39
Joined: Sep 2012
Reputation:
0
їComo seria un ejemplo de uno?
Posts: 4,930
Threads: 467
Joined: Dec 2010
Quote:
Originally Posted by jwalker
їComo seria un ejemplo de uno?
|
¬¬
pawn Код:
#include <a_samp>
#include <streamer>
new micheckpoint;
public OnGameModeInit() {
micheckpoint = CreateDynamicCP(1607.3693,1815.2408,10.8203, 3.0, -1, -1, -1, 100.0);
return 1;
}
Posts: 1,779
Threads: 126
Joined: Oct 2010
Quote:
Originally Posted by jwalker
PHP код:
warning 204: symbol is assigned a value that is never used: "checkpointhospital"
Y lo estoy usando.
|
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == checkpointhospital)
{
SendClientMessage(playerid, -1, "Entraste en el checkpoint 'hospital'");
}
return 1;
}
Posts: 1,779
Threads: 126
Joined: Oct 2010
No hay que declarar de nuevo checkpointhospital, ya lo estб.
Borra new checkpointhospital;, el que estб dentro de OnPlayerEnterDynamicCP