30.01.2010, 20:33
Ok, thank guys.
And help me in this: (SAME ERROR):
And help me in this: (SAME ERROR):
pawn Код:
stock LoadSpec(playerid, specplayerid)
{
for(new x=0; x<MAX_PLAYERS; x++)
{
if(GetPlayerState(x) == PLAYER_STATE_SPECTATING && INFO[x][ID] == playerid)
{
SPECTATE2(x); }
}
SetPlayerInterior(playerid,GetPlayerInterior(specplayerid));
TogglePlayerSpectating(playerid, 1);
if(IsPlayerInAnyVehicle(specplayerid)) {
PlayerSpectateVehicle(playerid, GetPlayerVehicleID(specplayerid));
INFO[playerid][ID] = specplayerid;
INFO[playerid][TYPW] = ADMIN_SPEC_TYPE_VEHICLE;
}else {
PlayerSpectatePlayer(playerid, specid);
INFO[playerid][ID] = specplayerid;
INFO[playerid][TYPE] = ADMIN_SPEC_TYPE_PLAYER;
}
for(new i = 0; i < MAX_PLAYERS; i++) {
TextDrawShowForPlayer(playerid,SPEC[i]);
TextDrawSetString(SPEC[i], "SPEC TEXT");
}
return 1;
}